Fix copy issues

This commit is contained in:
2026-03-29 14:25:10 -05:00
parent e56ff20e2d
commit 26fafab47a
5 changed files with 11 additions and 10 deletions

View File

@@ -25,8 +25,8 @@ errorret_t textureInitGL(
switch(format) {
case TEXTURE_FORMAT_RGBA:
glTexImage2D(
GL_TEXTURE_2D, 0, format, width, height, 0,
format, GL_UNSIGNED_BYTE, (void*)data.rgbaColors
GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0,
GL_RGBA, GL_UNSIGNED_BYTE, (void*)data.rgbaColors
);
errorChain(errorGLCheck());
break;