Enable openGL debug output
This commit is contained in:
parent
fb4a412db5
commit
ec0155bc77
|
@ -119,8 +119,8 @@ static void init_opengl() {
|
||||||
dbg_log("Initialising opengl");
|
dbg_log("Initialising opengl");
|
||||||
|
|
||||||
// During init, enable debug output
|
// During init, enable debug output
|
||||||
glEnable ( GL_DEBUG_OUTPUT );
|
glEnable(GL_DEBUG_OUTPUT);
|
||||||
glDebugMessageCallback( MessageCallback, 0 );
|
glDebugMessageCallback(MessageCallback, 0);
|
||||||
|
|
||||||
// Configure the context's capabilities
|
// Configure the context's capabilities
|
||||||
glClearColor(0.0, 0.0, 0.0, 1.0);
|
glClearColor(0.0, 0.0, 0.0, 1.0);
|
||||||
|
|
Loading…
Reference in New Issue