Support create OpenGL debug context in OpenGL 4.3 (#2068)
* - support create OpenGL debug context in OpenGL 4.3 * - additional events in debug message - fixed glEnable(GL_DEBUG_OUTPUT) * Reviewed OpenGL Debug Context
This commit is contained in:
parent
963021d393
commit
9f2ff3e4d6
3 changed files with 70 additions and 0 deletions
|
@ -3858,6 +3858,10 @@ static bool InitGraphicsDevice(int width, int height)
|
|||
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3); // Choose OpenGL minor version (just hint)
|
||||
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
|
||||
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GLFW_FALSE);
|
||||
|
||||
#if defined(RLGL_ENABLE_OPENGL_DEBUG_CONTEXT)
|
||||
glfwWindowHint(GLFW_OPENGL_DEBUG_CONTEXT, GLFW_TRUE); // Enable OpenGL Debug Context
|
||||
#endif
|
||||
}
|
||||
else if (rlGetVersion() == OPENGL_ES_20) // Request OpenGL ES 2.0 context
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue