fix: use standard OpenGL constants on Linux to fix invisible terrain

This commit is contained in:
JuiceyDev
2026-03-06 21:43:31 +01:00
parent f8510b88f0
commit 12c48a02ad
5 changed files with 14 additions and 14 deletions

View File

@@ -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
}