Skip to content

Commit eef00a9

Browse files
committed
fix texture format error
1 parent 62f855b commit eef00a9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cocos/renderer/backend/opengl/TextureGL.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,11 @@ void TextureGL::toGLTypes()
227227
_format = GL_RGB;
228228
_type = GL_UNSIGNED_BYTE;
229229
break;
230+
case TextureFormat::RGBA4444:
231+
_internalFormat = GL_RGBA;
232+
_format = GL_RGBA;
233+
_type = GL_UNSIGNED_SHORT_4_4_4_4;
234+
break;
230235
case TextureFormat::A8:
231236
_internalFormat = GL_ALPHA;
232237
_format = GL_ALPHA;

0 commit comments

Comments
 (0)