Explorar o código

Fixed a typo preventing compressed textures from being loaded into images

Alex Szpakowski %!s(int64=12) %!d(string=hai) anos
pai
achega
ef9f30d5c4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/modules/graphics/opengl/wrap_Graphics.cpp

+ 1 - 1
src/modules/graphics/opengl/wrap_Graphics.cpp

@@ -174,7 +174,7 @@ int w_newImage(lua_State *L)
 	else
 		data = luax_checktype<love::image::ImageData>(L, 1, "ImageData", IMAGE_IMAGE_DATA_T);
 
-	if (!data && !data)
+	if (!data && !cdata)
 		return luaL_error(L, "Error creating image.");
 
 	// Create the image.