Merge: doc -> main

This commit is contained in:
PedroEdiaz
2024-10-02 13:10:08 -06:00
parent 3c9690a2a7
commit d22daff16d
17 changed files with 363 additions and 163 deletions

View File

@@ -2,6 +2,10 @@
#include <GL/gl.h>
#include "main.h"
#ifdef DEBUG
#include <stdio.h>
#endif
#define NULL ((void*)0)
void destroy_shader( unsigned int shader )
@@ -44,7 +48,7 @@ unsigned char gload_program( unsigned int program, const char * src,
#ifdef DEBUG
char log[256];
glGetShaderInfoLog( shader, 256, NULL, log );
printf( log );
printf( "%s", log );
#endif
return 0;
}