Переглянути джерело

Discard active stencil when switching canvas.

vrld 13 роки тому
батько
коміт
6178aea6ef
1 змінених файлів з 3 додано та 0 видалено
  1. 3 0
      src/modules/graphics/opengl/wrap_Graphics.cpp

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

@@ -712,6 +712,9 @@ namespace opengl
 
 
 	int w_setCanvas(lua_State * L)
 	int w_setCanvas(lua_State * L)
 	{
 	{
+		// discard stencil testing
+		instance->discardStencil();
+
 		// called with nil or none -> reset to default buffer
 		// called with nil or none -> reset to default buffer
 		if (lua_isnoneornil(L,1))
 		if (lua_isnoneornil(L,1))
 		{
 		{