mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-15 10:25:06 -04:00
textures: load correct 9th texture
Fixes crash on mesa drivers and wrong behavior
This commit is contained in:
parent
9e995d08b9
commit
31e1dc4073
@ -48,7 +48,7 @@ vec4 getTexture(uint textureId, vec3 uv, float mipmapLevel) {
|
||||
case 6u: return textureLod(uTextures[6], uv, mipmapLevel);
|
||||
case 7u: return textureLod(uTextures[7], uv, mipmapLevel);
|
||||
case 8u: return textureLod(uTextures[8], uv, mipmapLevel);
|
||||
case 9u: return textureLod(uTextures[8], uv, mipmapLevel);
|
||||
case 9u: return textureLod(uTextures[9], uv, mipmapLevel);
|
||||
}
|
||||
return textureLod(uTextures[0], uv, mipmapLevel);
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user