jak3: fix opengl error spam (#3586)

This commit is contained in:
Hat Kid
2024-07-15 20:21:52 +02:00
committed by GitHub
parent 1c170b741c
commit fbab87b0fe
2 changed files with 2 additions and 1 deletions
@@ -446,6 +446,7 @@ TextureAnimator::TextureAnimator(ShaderLibrary& shaders,
m_shader_id = shader.id();
m_uniforms.rgba = glGetUniformLocation(shader.id(), "rgba");
m_uniforms.enable_tex = glGetUniformLocation(shader.id(), "enable_tex");
m_uniforms.set_alpha = glGetUniformLocation(shader.id(), "set_alpha");
m_uniforms.positions = glGetUniformLocation(shader.id(), "positions");
m_uniforms.uvs = glGetUniformLocation(shader.id(), "uvs");
m_uniforms.channel_scramble = glGetUniformLocation(shader.id(), "channel_scramble");
@@ -59,7 +59,7 @@ void main() {
color = (rgba / 128.);
}
if (set_alpha == 1) {
color.a = rgba.a;
color.a = 0.5;
} else {
color.a *= alpha_multiply;
}