mirror of
				https://github.com/glfw/glfw.git
				synced 2025-11-03 22:04:15 +00:00 
			
		
		
		
	Fixed debug context being a hard constraint on WGL.
This commit is contained in:
		
							parent
							
								
									fc74a5533e
								
							
						
					
					
						commit
						669c40f102
					
				@ -998,14 +998,19 @@ int _glfwPlatformOpenWindow(_GLFWwindow* window,
 | 
				
			|||||||
            recreateContext = GL_TRUE;
 | 
					            recreateContext = GL_TRUE;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (wndconfig->glForward || wndconfig->glDebug)
 | 
					    if (wndconfig->glDebug)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        if (window->WGL.ARB_create_context)
 | 
				
			||||||
 | 
					            recreateContext = GL_TRUE;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    if (wndconfig->glForward)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        if (!window->WGL.ARB_create_context)
 | 
					        if (!window->WGL.ARB_create_context)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            _glfwSetError(GLFW_VERSION_UNAVAILABLE,
 | 
					            _glfwSetError(GLFW_VERSION_UNAVAILABLE,
 | 
				
			||||||
                          "Win32/WGL: A forward compatible or debug OpenGL "
 | 
					                          "Win32/WGL: A forward compatible OpenGL context "
 | 
				
			||||||
                          "context requested but WGL_ARB_create_context is "
 | 
					                          "requested but WGL_ARB_create_context is unavailable");
 | 
				
			||||||
                          "unavailable");
 | 
					 | 
				
			||||||
            return GL_FALSE;
 | 
					            return GL_FALSE;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user