Examples: OpenGL3+Win32: rework OpenGL initialization to allow Wine compatibility. Fix. (#9427, #6577)

Fixed commented out test code.
This commit is contained in:
ocornut
2026-07-03 18:59:37 +02:00
parent 4f1ea369ea
commit 776bf2ab0d

View File

@@ -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");