From 3ad32275954c45dddce77ba8b27d29385dbcf852 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jukka=20Jyl=C3=A4nki?= Date: Wed, 4 Mar 2020 18:07:01 +0200 Subject: [PATCH] Revert back to using GL_HALF_FLOAT (that is GL_HALF_FLOAT_OES) --- src/renderer_gl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer_gl.cpp b/src/renderer_gl.cpp index a906d3e12..8eb829521 100644 --- a/src/renderer_gl.cpp +++ b/src/renderer_gl.cpp @@ -2336,7 +2336,7 @@ namespace bgfx { namespace gl { 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); // internalFormat and format must match: // https://www.khronos.org/opengles/sdk/docs/man/xhtml/glTexImage2D.xml