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

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

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