Fix getCanvas for cube canvases;

This commit is contained in:
bjornbytes
2018-02-11 22:09:14 -08:00
parent 499844bffe
commit 1916c2a5fa
+1 -1
View File
@@ -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");