mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 00:58:30 -05:00
Fixed GLES2 build.
This commit is contained in:
parent
ff656de290
commit
695fc7fd5f
1 changed files with 6 additions and 0 deletions
|
@ -702,7 +702,11 @@ namespace bgfx
|
|||
{
|
||||
GL_UNSIGNED_BYTE,
|
||||
GL_UNSIGNED_SHORT,
|
||||
#if BGFX_CONFIG_RENDERER_OPENGL|BGFX_CONFIG_RENDERER_OPENGLES3
|
||||
GL_HALF_FLOAT,
|
||||
#else
|
||||
GL_HALF_FLOAT_OES,
|
||||
#endif // BGFX_CONFIG_RENDERER_OPENGL|BGFX_CONFIG_RENDERER_OPENGLES3
|
||||
GL_FLOAT,
|
||||
};
|
||||
|
||||
|
@ -1389,10 +1393,12 @@ namespace bgfx
|
|||
{
|
||||
m_target = GL_TEXTURE_CUBE_MAP;
|
||||
}
|
||||
#if BGFX_CONFIG_RENDERER_OPENGL|BGFX_CONFIG_RENDERER_OPENGLES3
|
||||
else if (tc.m_depth > 1)
|
||||
{
|
||||
m_target = GL_TEXTURE_3D;
|
||||
}
|
||||
#endif // BGFX_CONFIG_RENDERER_OPENGL|BGFX_CONFIG_RENDERER_OPENGLES3
|
||||
else
|
||||
{
|
||||
m_target = GL_TEXTURE_2D;
|
||||
|
|
Loading…
Reference in a new issue