From 5c012893002f87aba00caa5cce7736bafba01c10 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Sat, 13 Jul 2019 21:58:01 -0300 Subject: [PATCH] Fix love.graphics.getTextureTypes to return a table with boolean values instead of number values. --- 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 eca315b83..ab0a6d186 100644 --- a/src/modules/graphics/wrap_Graphics.cpp +++ b/src/modules/graphics/wrap_Graphics.cpp @@ -2250,7 +2250,7 @@ int w_getTextureTypes(lua_State *L) if (!Texture::getConstant(textype, name)) continue; - lua_pushnumber(L, caps.textureTypes[i]); + luax_pushboolean(L, caps.textureTypes[i]); lua_setfield(L, -2, name); }