mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-26 05:41:45 +00:00
Only call seterror if the context creation fails
This commit is contained in:
parent
6450bdcc67
commit
10702928ae
1 changed files with 6 additions and 2 deletions
|
@ -303,8 +303,12 @@ HGLRC OpenGLCreationHelper::CreateContext(HDC hdc, HGLRC share_context)
|
|||
break;
|
||||
}
|
||||
|
||||
GLenum error = glGetError();
|
||||
SetError("No OpenGL 3.2 support found: %d", error);
|
||||
// Grab the error from the last create attempt
|
||||
if (!opengl3_context)
|
||||
{
|
||||
GLenum error = glGetError();
|
||||
SetError("No OpenGL 3.2 support found: %d", error);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue