reformat the code by enabeling assignment- and declaration alignment.

This commit is contained in:
2025-10-09 12:17:04 +02:00
parent cebe0df8a2
commit d4fabf437c
12 changed files with 83 additions and 83 deletions

View File

@@ -15,7 +15,7 @@ static GLuint pipe;
static GLuint vbo; // vertex buffer object
static GLuint vao; // vertex array object
static GLuint screen_loc; // location to where OpenGL sends to the shaders of the screen dimensions
static int win_w, win_h;
static int win_w, win_h;
static void screen_resize(int w, int h) {
i32 verts[VERTC][4] = {
@@ -84,7 +84,7 @@ void render_free(void) {
glDeleteVertexArrays(1, &vao);
glDeleteBuffers(1, &vbo);
glDeleteProgram(pipe);
vbo = 0;
vao = 0;
vbo = 0;
vao = 0;
pipe = 0;
}

View File

@@ -5,6 +5,6 @@
#include <GLFW/glfw3.h>
#include <glad/gl.h>
int render_init(void);
int render_init(void);
void render_update(GLFWwindow *win);
void render_free(void);

View File

@@ -20,7 +20,7 @@ extern const uint sh_geom_glsl_len;
/* Compiles a shader of `type` from `src` with `len` bytes.
* Returns the integer for the shader. */
static GLuint shader_compile(GLenum type, const char *src, usize len) {
int ilen = len;
int ilen = len;
GLuint shader = glCreateShader(type);
glShaderSource(shader, 1, &src, &ilen);
glCompileShader(shader);