Skip to content

Commit

Permalink
fix for dumb mistake in MOAIMaterialBatch getTexture () and getShader ()
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickmeehan committed Oct 27, 2015
1 parent 17743c6 commit 919683b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/moai-sim/MOAIMaterialBatch.cpp
Expand Up @@ -112,7 +112,7 @@ int MOAIMaterialBatch::_getShader ( lua_State* L ) {
int MOAIMaterialBatch::_getTexture ( lua_State* L ) {
MOAI_LUA_SETUP ( MOAIMaterialBatch, "U" )
state.Push ( self->RawGetTexture ( state.GetValue < u32 >( 2, 1 ) - 1 ));
return 0;
return 1;
}

//----------------------------------------------------------------//
Expand All @@ -126,7 +126,7 @@ int MOAIMaterialBatch::_getTexture ( lua_State* L ) {
int MOAIMaterialBatch::_reserveMaterials ( lua_State* L ) {
MOAI_LUA_SETUP ( MOAIMaterialBatch, "U" )
self->Reserve ( state.GetValue ( 2, 0 ));
return 0;
return 1;
}

//----------------------------------------------------------------//
Expand Down

0 comments on commit 919683b

Please sign in to comment.