formatting

This commit is contained in:
Rakarake 2025-12-25 22:42:07 +01:00
parent 35d8ca7358
commit ae999d1b83
2 changed files with 19 additions and 33 deletions

View file

@ -5,13 +5,6 @@
#include <stdlib.h>
#include "renderer.h"
void checkGlError() {
//const char *err = SDL_GetError();
//if (*err != 0) {
// printf("OpenGL error: %s", err);
//}
}
/// returns 0 if failed.
GLuint compile_shader(GLuint type, const char *src) {
GLuint id = glCreateShader(type);
@ -35,11 +28,6 @@ GLuint compile_shader(GLuint type, const char *src) {
}
const char *vertex_shader_src =
//"attribute vec4 vPosition; \n"
//"void main() \n"
//"{ \n"
//" gl_Position = vPosition; \n"
//"} \n";
"#version 320 es\n"
"\n"
"layout(location = 0) in vec2 aPos;\n"