From 776bf2ab0d61e719e58f2c6d27d109ab5dcf2af1 Mon Sep 17 00:00:00 2001 From: ocornut Date: Fri, 3 Jul 2026 18:59:37 +0200 Subject: [PATCH] Examples: OpenGL3+Win32: rework OpenGL initialization to allow Wine compatibility. Fix. (#9427, #6577) Fixed commented out test code. --- examples/example_win32_opengl3/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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");