Browse Source

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

Alex Szpakowski 6 years ago
parent
commit
5c01289300
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/graphics/wrap_Graphics.cpp

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