Fix font textures in OpenGL ES 3.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2017-01-15 11:15:52 -04:00
parent 734be1afad
commit 44dc4bb2a2
+1 -1
View File
@@ -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;