mirror of
https://github.com/open-goal/jak-project
synced 2026-06-19 16:00:12 -04:00
jak3: fix opengl error spam (#3586)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user