GRIM: Undo last char/uint8 change for gfx_opengl_shaders.cpp

This one still uses `char`.
This commit is contained in:
Donovan Watteau 2023-03-07 14:14:43 +01:00
parent f3cac273b8
commit f08c56c527

View File

@ -1259,11 +1259,11 @@ void GfxOpenGLS::createTexture(Texture *texture, const uint8 *data, const CMap *
if (col == 0) {
memset(texdatapos, 0, bytes); // transparent
if (!texture->_hasAlpha) {
texdatapos[3] = 0xff; // fully opaque
texdatapos[3] = '\xff'; // fully opaque
}
} else {
memcpy(texdatapos, cmap->_colors + 3 * (col), 3);
texdatapos[3] = 0xff; // fully opaque
texdatapos[3] = '\xff'; // fully opaque
}
texdatapos += bytes;
data++;