From 44dc4bb2a287b22def7d5c2f80269d869f59f783 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Sun, 15 Jan 2017 11:15:52 -0400 Subject: [PATCH] Fix font textures in OpenGL ES 3. --HG-- branch : minor --- src/modules/graphics/opengl/OpenGL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/graphics/opengl/OpenGL.cpp b/src/modules/graphics/opengl/OpenGL.cpp index f3b079956..e1d9c3895 100644 --- a/src/modules/graphics/opengl/OpenGL.cpp +++ b/src/modules/graphics/opengl/OpenGL.cpp @@ -1051,7 +1051,7 @@ OpenGL::TextureFormat OpenGL::convertPixelFormat(PixelFormat pixelformat, bool r if (!isPixelFormatCompressed(pixelformat)) { - if (GLAD_ES_VERSION_2_0 && !(GLAD_ES_VERSION_3_0 && pixelformat != PIXELFORMAT_LA8) + if (GLAD_ES_VERSION_2_0 && !(GLAD_ES_VERSION_3_0 && pixelformat == PIXELFORMAT_LA8) && !renderbuffer) { f.internalformat = f.externalformat;