mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-01 03:47:07 -05:00
Use greater than test for GL version.
This commit is contained in:
parent
55a87d52da
commit
4c02620a24
2 changed files with 3 additions and 3 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue