Use greater than test for GL version.
This commit is contained in:
Родитель
55a87d52da
Коммит
4c02620a24
|
@ -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
|
||||
};
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче