mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-13 14:28:09 +00:00
fix: use standard OpenGL constants on Linux to fix invisible terrain
This commit is contained in:
@@ -611,7 +611,7 @@ void Textures::loadTexture(BufferedImage *img, int id, bool blur, bool clamp)
|
||||
// Swap ARGB to RGBA
|
||||
for( int i = 0; i < ww * hh ; i++ )
|
||||
{
|
||||
tempData[i] = ( tempData[i] << 8 ) | ( ( tempData[i] >> 24 ) & 0xff );
|
||||
tempData[i] = ( tempData[i] >> 24 ) | (tempData[i] << 8 );
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user