mirror of
https://github.com/love2d/love.git
synced 2026-08-12 16:40:57 +02:00
Fix love.graphics.getTextureTypes to return a table with boolean values instead of number values.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user