diff --git a/examples/example_win32_opengl3/main.cpp b/examples/example_win32_opengl3/main.cpp index b3a4da9c6..cba8301f8 100644 --- a/examples/example_win32_opengl3/main.cpp +++ b/examples/example_win32_opengl3/main.cpp @@ -233,8 +233,8 @@ bool CreateDeviceWGL(HWND hWnd, WGL_WindowData* data) // Keep temporary context: already OpenGL 3.0+. g_hRC = tempRC; - //if (gl_version >= 300) - // return true; + if (gl_version >= 300) + return true; typedef HGLRC(WINAPI* PFNWGLCREATECONTEXTATTRIBSARBPROC)(HDC, HGLRC, const int*); const PFNWGLCREATECONTEXTATTRIBSARBPROC wglCreateContextAttribsARB = (PFNWGLCREATECONTEXTATTRIBSARBPROC)wglGetProcAddress("wglCreateContextAttribsARB");