mirror of
https://github.com/libretro/RetroArch.git
synced 2024-12-03 13:51:02 +00:00
Update shader_glsl.c
This commit is contained in:
parent
7e2e87ad4a
commit
a2f34a6836
@ -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++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user