Skip to content

Commit

Permalink
Merge pull request #17616 from HR1025/dev
Browse files Browse the repository at this point in the history
align should be 3 when format is GL_RGB and type is GL_UNSIGNED_BYTE
  • Loading branch information
hrydgard authored Jun 24, 2023
2 parents a56f74c + fb91cf9 commit 72af8f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Common/GPU/OpenGL/DataFormatGL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 72af8f6

Please sign in to comment.