mirror of
https://github.com/love2d/love.git
synced 2026-08-20 12:40:20 +02:00
Fix getCanvas for cube canvases;
This commit is contained in:
@@ -366,7 +366,7 @@ static void pushRenderTarget(lua_State *L, const Graphics::RenderTarget &rt)
|
|||||||
lua_pushnumber(L, rt.slice + 1);
|
lua_pushnumber(L, rt.slice + 1);
|
||||||
lua_setfield(L, -2, "layer");
|
lua_setfield(L, -2, "layer");
|
||||||
}
|
}
|
||||||
else if (type == TEXTURE_VOLUME)
|
else if (type == TEXTURE_CUBE)
|
||||||
{
|
{
|
||||||
lua_pushnumber(L, rt.slice + 1);
|
lua_pushnumber(L, rt.slice + 1);
|
||||||
lua_setfield(L, -2, "face");
|
lua_setfield(L, -2, "face");
|
||||||
|
|||||||
Reference in New Issue
Block a user