This commit is contained in:
2025-06-15 16:04:18 +02:00
parent f2c2eaf36d
commit fe097f9d69
3 changed files with 2 additions and 4 deletions

View File

@@ -4,6 +4,7 @@
#if __INCLUDE_LEVEL__ > 0 #if __INCLUDE_LEVEL__ > 0
#include <stdio.h> #include <stdio.h>
#include <stdlib.h>
#endif #endif
#define ERROR_STR_PRE(v) #v #define ERROR_STR_PRE(v) #v

View File

@@ -6,8 +6,6 @@
#include <GLFW/glfw3.h> #include <GLFW/glfw3.h>
#include <stdint.h> #include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "../error.h" #include "../error.h"
#include "shader.h" #include "shader.h"
@@ -56,7 +54,7 @@ int render_init(void) {
// set VBO info // set VBO info
glBindBuffer(GL_ARRAY_BUFFER, vbo); glBindBuffer(GL_ARRAY_BUFFER, vbo);
glEnableVertexAttribArray(0); glEnableVertexAttribArray(0); // set the array data index to 0
glVertexAttribIPointer(0, 4, GL_INT, 4 * sizeof(int32_t), NULL); glVertexAttribIPointer(0, 4, GL_INT, 4 * sizeof(int32_t), NULL);
glBindVertexArray(0); glBindVertexArray(0);

View File

@@ -9,7 +9,6 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <sys/types.h>
#include "../error.h" #include "../error.h"
#include "atrb.h" #include "atrb.h"