From ce3e8e319c6d9b3900069557edd6bfe1b4ebec6f Mon Sep 17 00:00:00 2001 From: niu2x Date: Tue, 8 Jul 2025 17:27:10 +0800 Subject: [PATCH] fix GLES2PixelUtil::getClosestGLImageInternalFormat --- RenderSystems/GLES2/src/OgreGLES2PixelFormat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RenderSystems/GLES2/src/OgreGLES2PixelFormat.cpp b/RenderSystems/GLES2/src/OgreGLES2PixelFormat.cpp index 0e3f88e7856..3c5ff082953 100644 --- a/RenderSystems/GLES2/src/OgreGLES2PixelFormat.cpp +++ b/RenderSystems/GLES2/src/OgreGLES2PixelFormat.cpp @@ -762,7 +762,7 @@ namespace Ogre { GLenum GLES2PixelUtil::getClosestGLImageInternalFormat(PixelFormat format) { GLenum GLformat = getGLImageInternalFormat(format); - return (format == GL_NONE ? GL_RGBA8 : GLformat); + return (GLformat == GL_NONE ? GL_RGBA8 : GLformat); } //----------------------------------------------------------------------------- PixelFormat GLES2PixelUtil::getClosestOGREFormat(GLenum fmt, GLenum dataType)