Merge: doc -> main
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user