Преглед на файлове

Revert back to using GL_HALF_FLOAT (that is GL_HALF_FLOAT_OES)

Jukka Jylänki преди 5 години
родител
ревизия
3ad3227595
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/renderer_gl.cpp

+ 1 - 1
src/renderer_gl.cpp

@@ -2336,7 +2336,7 @@ namespace bgfx { namespace gl
 				{
 				{
 					if (glVersion < 30)
 					if (glVersion < 30)
 					{
 					{
-						setTextureFormat(TextureFormat::RGBA16F, GL_RGBA, GL_RGBA, GL_HALF_FLOAT_OES);
+						setTextureFormat(TextureFormat::RGBA16F, GL_RGBA, GL_RGBA, GL_HALF_FLOAT); // Note: this is actually GL_HALF_FLOAT_OES and not GL_HALF_FLOAT if compiling for GLES target.
 						setTextureFormat(TextureFormat::RGBA32F, GL_RGBA, GL_RGBA, GL_FLOAT);
 						setTextureFormat(TextureFormat::RGBA32F, GL_RGBA, GL_RGBA, GL_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