Minor cleanup in set_coords.
This commit is contained in:
parent
9e2ae7c500
commit
4057b054b1
11
gfx/gl.c
11
gfx/gl.c
|
@ -304,13 +304,10 @@ void gl_shader_set_coords(gl_t *gl, const struct gl_coords *coords, const math_m
|
|||
bool ret_coords = false;
|
||||
bool ret_mvp = false;
|
||||
|
||||
(void)ret_coords;
|
||||
(void)ret_mvp;
|
||||
|
||||
if (!ret_coords && gl->shader)
|
||||
ret_coords |= gl->shader->set_coords(coords);
|
||||
if (!ret_mvp && gl->shader)
|
||||
ret_mvp |= gl->shader->set_mvp(mat);
|
||||
if (gl->shader)
|
||||
ret_coords = gl->shader->set_coords(coords);
|
||||
if (gl->shader)
|
||||
ret_mvp = gl->shader->set_mvp(mat);
|
||||
|
||||
// Fall back to FF-style if needed and possible.
|
||||
#ifndef NO_GL_FF_VERTEX
|
||||
|
|
Loading…
Reference in New Issue