mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 17:43:02 +00:00
(GLSL) Refactor more code
This commit is contained in:
parent
3b5c4d963a
commit
5d6b4d0a56
@ -1461,12 +1461,12 @@ static void gl_glsl_set_params(void *data, void *shader_data,
|
|||||||
for (i = 0; i < cnt; i++)
|
for (i = 0; i < cnt; i++)
|
||||||
{
|
{
|
||||||
struct uniform_info state_param = {0};
|
struct uniform_info state_param = {0};
|
||||||
int location = glGetUniformLocation(
|
|
||||||
glsl->prg[glsl->glsl_active_index].id,
|
|
||||||
state_info[i].id);
|
|
||||||
|
|
||||||
|
state_param.lookup.enable = true;
|
||||||
|
state_param.lookup.idx = glsl->glsl_active_index;
|
||||||
|
state_param.lookup.ident = state_info[i].id;
|
||||||
|
state_param.lookup.type = SHADER_PROGRAM_COMBINED;
|
||||||
state_param.enabled = true;
|
state_param.enabled = true;
|
||||||
state_param.location = location;
|
|
||||||
state_param.type = UNIFORM_1F;
|
state_param.type = UNIFORM_1F;
|
||||||
state_param.result.f.v0 = state_info[i].value;
|
state_param.result.f.v0 = state_info[i].value;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user