瀏覽代碼

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)
 	{
+		// discard stencil testing
+		instance->discardStencil();
+
 		// called with nil or none -> reset to default buffer
 		if (lua_isnoneornil(L,1))
 		{