From 4c02620a249cf2618861fb2ca67e93f714eaa7d4 Mon Sep 17 00:00:00 2001 From: bkaradzic Date: Wed, 6 Mar 2013 21:33:35 -0800 Subject: [PATCH] Use greater than test for GL version. --- src/bgfx_p.h | 2 +- src/glcontext_wgl.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bgfx_p.h b/src/bgfx_p.h index af5fcb8a..5187f927 100755 --- a/src/bgfx_p.h +++ b/src/bgfx_p.h @@ -139,7 +139,7 @@ namespace stl { #elif BGFX_CONFIG_RENDERER_DIRECT3D11 # define BGFX_RENDERER_NAME "Direct3D 11" #elif BGFX_CONFIG_RENDERER_OPENGL -# if BGFX_CONFIG_RENDERER_OPENGL == 31 +# if BGFX_CONFIG_RENDERER_OPENGL >= 31 # define BGFX_RENDERER_NAME "OpenGL 3.1" # else # define BGFX_RENDERER_NAME "OpenGL 2.1" diff --git a/src/glcontext_wgl.cpp b/src/glcontext_wgl.cpp index 987ec348..78755267 100644 --- a/src/glcontext_wgl.cpp +++ b/src/glcontext_wgl.cpp @@ -202,7 +202,7 @@ namespace bgfx uint32_t flags = BGFX_CONFIG_DEBUG ? WGL_CONTEXT_DEBUG_BIT_ARB : 0; int32_t contextAttrs[] = { -#if BGFX_CONFIG_RENDERER_OPENGL == 31 +#if BGFX_CONFIG_RENDERER_OPENGL >= 31 WGL_CONTEXT_MAJOR_VERSION_ARB, 3, WGL_CONTEXT_MINOR_VERSION_ARB, 1, WGL_CONTEXT_FLAGS_ARB, flags, @@ -210,7 +210,7 @@ namespace bgfx #else WGL_CONTEXT_MAJOR_VERSION_ARB, 2, WGL_CONTEXT_MINOR_VERSION_ARB, 1, -#endif // BGFX_CONFIG_RENDERER_OPENGL == 31 +#endif // BGFX_CONFIG_RENDERER_OPENGL >= 31 0 };