Merge pull request #17616 from HR1025/dev

align should be 3 when format is GL_RGB and type is GL_UNSIGNED_BYTE
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2023-06-24 22:56:04 +02:00
commit 72af8f6e96
1 file changed
+1 -1
+1 -1
View File
@@ -55,7 +55,7 @@ bool Thin3DFormatToGLFormatAndType(DataFormat fmt, GLuint &internalFormat, GLuin
internalFormat = GL_RGB;
format = GL_RGB;
type = GL_UNSIGNED_BYTE;
alignment = 1;
alignment = 3;
break;
case DataFormat::R4G4B4A4_UNORM_PACK16: