mirror of
https://github.com/glfw/glfw.git
synced 2026-09-19 23:43:15 +00:00
Initialize context creation APIs on demand
This commit is contained in:
@@ -92,6 +92,9 @@ static void destroyContextNSGL(_GLFWwindow* window)
|
||||
//
|
||||
GLFWbool _glfwInitNSGL(void)
|
||||
{
|
||||
if (_glfw.nsgl.framework)
|
||||
return GLFW_TRUE;
|
||||
|
||||
_glfw.nsgl.framework =
|
||||
CFBundleGetBundleWithIdentifier(CFSTR("com.apple.opengl"));
|
||||
if (_glfw.nsgl.framework == NULL)
|
||||
|
||||
Reference in New Issue
Block a user