2
0
Эх сурвалжийг харах

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

Alex Szpakowski 6 жил өмнө
parent
commit
5c01289300

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