Skip to content
Browse files

Allow setting of GL_CONTEXT_RELEASE_BEHAVIOR when creating the GL con…

…text when GLX_ARB_context_flush_control is available.

This extension allows the user to specify whether a full flush is performed when making a context not current.
The only way to set this currently is at context creation, so this patch provides that functionality.
Defualt behaviour is set at FLUSH, as per the spec.

This patch does not contain the changes to WGL, appleGL or other platforms as I do not have access to GL 4.5 hardware on those platforms.

Full details on the use of KHR_context_flush_control can be found here:
  • Loading branch information
Marc Di Luzio committed Mar 6, 2015
1 parent 70191a9 commit f5d96416ad0e2d09f222c25fa7e8bb0d8399b0f1

File 1 of 6 in f5d9641

@@ -2988,6 +2988,11 @@ GLAPI GLboolean APIENTRY glIsProgramARB (GLuint program);
#define GL_ARB_framebuffer_sRGB 1
#endif /* GL_ARB_framebuffer_sRGB */

#ifndef GL_KHR_context_flush_control
#endif /* GL_KHR_context_flush_control */

#ifndef GL_ARB_geometry_shader4
#define GL_ARB_geometry_shader4 1

0 comments on commit f5d9641

Please sign in to comment.