소스 검색

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

Alex Szpakowski 6 년 전
부모
커밋
5c01289300
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);
 	}