mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 14:01:49 +00:00
temporary fix
This commit is contained in:
parent
8cc81cc9b8
commit
4f549999f5
1 changed files with 5 additions and 0 deletions
|
|
@ -96,8 +96,10 @@ static bool initialize_gl(int width, int height) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef __APPLE__
|
||||||
glEnable(GL_DEBUG_OUTPUT);
|
glEnable(GL_DEBUG_OUTPUT);
|
||||||
glDebugMessageCallback(gl_message_callback, 0);
|
glDebugMessageCallback(gl_message_callback, 0);
|
||||||
|
#endif
|
||||||
|
|
||||||
glViewport(0, 0, width, height);
|
glViewport(0, 0, width, height);
|
||||||
glClearColor(0.0f, 0.0f, 0.0f, 1);
|
glClearColor(0.0f, 0.0f, 0.0f, 1);
|
||||||
|
|
@ -669,10 +671,13 @@ std::tuple<
|
||||||
}
|
}
|
||||||
|
|
||||||
init_gl_extensions_list();
|
init_gl_extensions_list();
|
||||||
|
|
||||||
|
#ifndef __APPLE__
|
||||||
if (is_gl_extension_supported("GL_KHR_debug")) {
|
if (is_gl_extension_supported("GL_KHR_debug")) {
|
||||||
glEnable(GL_DEBUG_OUTPUT);
|
glEnable(GL_DEBUG_OUTPUT);
|
||||||
glDebugMessageCallback(gl_message_callback, nullptr);
|
glDebugMessageCallback(gl_message_callback, nullptr);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
glViewport(0, 0, width, height);
|
glViewport(0, 0, width, height);
|
||||||
glClearColor(0.0f, 0.0f, 0.0f, 1);
|
glClearColor(0.0f, 0.0f, 0.0f, 1);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue