Browse Source

Fixed a typo preventing compressed textures from being loaded into images

Alex Szpakowski 12 years ago
parent
commit
ef9f30d5c4
1 changed files with 1 additions and 1 deletions
  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.