formatting
This commit is contained in:
parent
35d8ca7358
commit
ae999d1b83
2 changed files with 19 additions and 33 deletions
12
renderer.c
12
renderer.c
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue