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); }