Fix love.graphics.getTextureTypes to return a table with boolean values instead of number values.

This commit is contained in:
Alex Szpakowski
2019-07-13 21:58:01 -03:00
parent b158aef11e
commit 5c01289300
+1 -1
View File
@@ -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);
}