소스 검색

Fix getCanvas for cube canvases;

bjornbytes 7 년 전
부모
커밋
1916c2a5fa
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/modules/graphics/wrap_Graphics.cpp

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

@@ -366,7 +366,7 @@ static void pushRenderTarget(lua_State *L, const Graphics::RenderTarget &rt)
 		lua_pushnumber(L, rt.slice + 1);
 		lua_setfield(L, -2, "layer");
 	}
-	else if (type == TEXTURE_VOLUME)
+	else if (type == TEXTURE_CUBE)
 	{
 		lua_pushnumber(L, rt.slice + 1);
 		lua_setfield(L, -2, "face");