mirror of
https://github.com/libretro/Play-.git
synced 2024-12-04 15:26:23 +00:00
Fixed paletted textures looking crappy on Tegra.
This commit is contained in:
parent
15827e6295
commit
93b1cfdc5b
@ -289,11 +289,11 @@ Framework::OpenGl::CShader CGSH_OpenGL::GenerateFragmentShader(const SHADERCAPS&
|
||||
shaderBuilder << " float colorIndex = textureProj(g_texture, v_texCoord).r * 255.0;" << std::endl;
|
||||
if(caps.texSourceMode == TEXTURE_SOURCE_MODE_IDX4)
|
||||
{
|
||||
shaderBuilder << " textureColor = texture(g_palette, vec2(colorIndex / 16.0, 1));" << std::endl;
|
||||
shaderBuilder << " textureColor = texture(g_palette, vec2(colorIndex / 15.0, 1));" << std::endl;
|
||||
}
|
||||
else if(caps.texSourceMode == TEXTURE_SOURCE_MODE_IDX8)
|
||||
{
|
||||
shaderBuilder << " textureColor = texture(g_palette, vec2(colorIndex / 256.0, 1));" << std::endl;
|
||||
shaderBuilder << " textureColor = texture(g_palette, vec2(colorIndex / 255.0, 1));" << std::endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user