summaryrefslogtreecommitdiff
path: root/src/rlgl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rlgl.c')
-rw-r--r--src/rlgl.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/rlgl.c b/src/rlgl.c
index 71f91c7..c18a171 100644
--- a/src/rlgl.c
+++ b/src/rlgl.c
@@ -1726,17 +1726,17 @@ int lrlglSetShader( lua_State* L ) {
unsigned int id = (unsigned int)luaL_checkinteger( L, 1 );
int t = 2, i = 0;
- lua_pushnil( L );
+ lua_pushnil( L );
while ( lua_next( L, t ) != 0 ) {
- if ( lua_isnumber( L, -1 ) ) {
+ if ( lua_isnumber( L, -1 ) ) {
if ( i < RL_MAX_SHADER_LOCATIONS ) {
state->RLGLcurrentShaderLocs[i] = lua_tointeger( L, -1 );
}
- }
- i++;
- lua_pop( L, 1 );
- }
+ }
+ i++;
+ lua_pop( L, 1 );
+ }
rlSetShader( id, state->RLGLcurrentShaderLocs );
return 0;