Browse Source

Fixed love.graphics.stencil

Alex Szpakowski 10 years ago
parent
commit
2e8f19930c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/modules/graphics/opengl/wrap_Graphics.cpp

+ 1 - 0
src/modules/graphics/opengl/wrap_Graphics.cpp

@@ -168,6 +168,7 @@ int w_stencil(lua_State *L)
 	instance()->drawToStencilBuffer(true);
 	instance()->drawToStencilBuffer(true);
 
 
 	// Call stencilfunc()
 	// Call stencilfunc()
+    lua_pushvalue(L, 1);
 	lua_call(L, 0, 0);
 	lua_call(L, 0, 0);
 
 
 	instance()->drawToStencilBuffer(false);
 	instance()->drawToStencilBuffer(false);