mirror of https://github.com/bkaradzic/bgfx
Merge pull request #1605 from mchiasson/new_opengl_names
Added latest gl and gles versions
This commit is contained in:
commit
6e680baa15
10
src/bgfx_p.h
10
src/bgfx_p.h
|
@ -233,7 +233,7 @@ namespace stl = std;
|
|||
# else
|
||||
# define BGFX_RENDERER_OPENGL_NAME "OpenGL 3.3"
|
||||
# endif // 31+
|
||||
# elif BGFX_CONFIG_RENDERER_OPENGL >= 40 && BGFX_CONFIG_RENDERER_OPENGL <= 45
|
||||
# elif BGFX_CONFIG_RENDERER_OPENGL >= 40 && BGFX_CONFIG_RENDERER_OPENGL <= 46
|
||||
# if BGFX_CONFIG_RENDERER_OPENGL == 40
|
||||
# define BGFX_RENDERER_OPENGL_NAME "OpenGL 4.0"
|
||||
# elif BGFX_CONFIG_RENDERER_OPENGL == 41
|
||||
|
@ -244,8 +244,10 @@ namespace stl = std;
|
|||
# define BGFX_RENDERER_OPENGL_NAME "OpenGL 4.3"
|
||||
# elif BGFX_CONFIG_RENDERER_OPENGL == 44
|
||||
# define BGFX_RENDERER_OPENGL_NAME "OpenGL 4.4"
|
||||
# else
|
||||
# elif BGFX_CONFIG_RENDERER_OPENGL == 45
|
||||
# define BGFX_RENDERER_OPENGL_NAME "OpenGL 4.5"
|
||||
# else
|
||||
# define BGFX_RENDERER_OPENGL_NAME "OpenGL 4.6"
|
||||
# endif // 40+
|
||||
# else
|
||||
# define BGFX_RENDERER_OPENGL_NAME "OpenGL 2.1"
|
||||
|
@ -253,8 +255,10 @@ namespace stl = std;
|
|||
#elif BGFX_CONFIG_RENDERER_OPENGLES
|
||||
# if BGFX_CONFIG_RENDERER_OPENGLES == 30
|
||||
# define BGFX_RENDERER_OPENGL_NAME "OpenGL ES 3.0"
|
||||
# elif BGFX_CONFIG_RENDERER_OPENGLES >= 31
|
||||
# elif BGFX_CONFIG_RENDERER_OPENGLES == 31
|
||||
# define BGFX_RENDERER_OPENGL_NAME "OpenGL ES 3.1"
|
||||
# elif BGFX_CONFIG_RENDERER_OPENGLES >= 32
|
||||
# define BGFX_RENDERER_OPENGL_NAME "OpenGL ES 3.2"
|
||||
# else
|
||||
# define BGFX_RENDERER_OPENGL_NAME "OpenGL ES 2.0"
|
||||
# endif // BGFX_CONFIG_RENDERER_OPENGLES
|
||||
|
|
Loading…
Reference in New Issue