From 1916c2a5fa186895eb1a674fa0dac6065424c8c0 Mon Sep 17 00:00:00 2001 From: bjornbytes Date: Sun, 11 Feb 2018 22:09:14 -0800 Subject: [PATCH] Fix getCanvas for cube canvases; --- src/modules/graphics/wrap_Graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/graphics/wrap_Graphics.cpp b/src/modules/graphics/wrap_Graphics.cpp index dceae27d1..eb4367b68 100644 --- a/src/modules/graphics/wrap_Graphics.cpp +++ b/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");