Use greater than test for GL version.

This commit is contained in:
bkaradzic
2013-03-06 21:33:35 -08:00
parent 55a87d52da
commit 4c02620a24
2 changed files with 3 additions and 3 deletions

View File

@@ -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
};