Minor cleanup in set_coords.

This commit is contained in:
Themaister 2012-11-15 17:17:55 +01:00
parent 9e2ae7c500
commit 4057b054b1
1 changed files with 4 additions and 7 deletions

View File

@ -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