浏览代码

Fix font textures in OpenGL ES 3.

--HG--
branch : minor
Alex Szpakowski 9 年之前
父节点
当前提交
44dc4bb2a2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/modules/graphics/opengl/OpenGL.cpp

+ 1 - 1
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;