From 695fc7fd5fc8cbda4e15ca932b5c5f4d1a35d074 Mon Sep 17 00:00:00 2001 From: bkaradzic Date: Sat, 3 Nov 2012 22:52:16 -0700 Subject: [PATCH] Fixed GLES2 build. --- src/renderer_gl.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/renderer_gl.cpp b/src/renderer_gl.cpp index e2e2cd71..f66bac54 100644 --- a/src/renderer_gl.cpp +++ b/src/renderer_gl.cpp @@ -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;