瀏覽代碼

GLES: Fixed RGBA32F detection.

Branimir Karadžić 9 年之前
父節點
當前提交
7749b745f7
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/renderer_gl.cpp

+ 1 - 0
src/renderer_gl.cpp

@@ -1622,6 +1622,7 @@ namespace bgfx { namespace gl
 				if (BX_ENABLED(BGFX_CONFIG_RENDERER_OPENGLES < 30) )
 				if (BX_ENABLED(BGFX_CONFIG_RENDERER_OPENGLES < 30) )
 				{
 				{
 					setTextureFormat(TextureFormat::RGBA16F, GL_RGBA, GL_RGBA, GL_HALF_FLOAT);
 					setTextureFormat(TextureFormat::RGBA16F, GL_RGBA, GL_RGBA, GL_HALF_FLOAT);
+					setTextureFormat(TextureFormat::RGBA32F, GL_RGBA, GL_RGBA, GL_HALF_FLOAT);
 					// internalFormat and format must match:
 					// internalFormat and format must match:
 					// https://www.khronos.org/opengles/sdk/docs/man/xhtml/glTexImage2D.xml
 					// https://www.khronos.org/opengles/sdk/docs/man/xhtml/glTexImage2D.xml
 					setTextureFormat(TextureFormat::RGBA8,  GL_RGBA, GL_RGBA, GL_UNSIGNED_BYTE);
 					setTextureFormat(TextureFormat::RGBA8,  GL_RGBA, GL_RGBA, GL_UNSIGNED_BYTE);