Update shader_glsl.c

This commit is contained in:
LibretroAdmin 2023-02-26 19:03:05 +01:00 committed by GitHub
parent 7e2e87ad4a
commit a2f34a6836
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,8 +98,6 @@ struct shader_uniforms
int frame_count;
int frame_direction;
int rotation;
int lut_texture[GFX_MAX_TEXTURES];
unsigned frame_count_mod;
@ -734,8 +732,6 @@ static void gl_glsl_find_uniforms(glsl_shader_data_t *glsl,
uni->frame_count = gl_glsl_get_uniform(glsl, prog, "FrameCount");
uni->frame_direction = gl_glsl_get_uniform(glsl, prog, "FrameDirection");
uni->rotation = gl_glsl_get_uniform(glsl, prog, "Rotation");
for (i = 0; i < glsl->shader->luts; i++)
uni->lut_texture[i] = glGetUniformLocation(prog, glsl->shader->lut[i].id);
@ -1332,9 +1328,6 @@ static void gl_glsl_set_params(void *dat, void *shader_data)
glUniform1i(uni->frame_direction, 1);
}
if (uni->rotation >= 0)
glUniform1i(uni->rotation, retroarch_get_rotation());
/* Set lookup textures. */
for (i = 0; i < glsl->shader->luts; i++)
{