mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
Fixed a typo preventing compressed textures from being loaded into images
This commit is contained in:
@@ -174,7 +174,7 @@ int w_newImage(lua_State *L)
|
|||||||
else
|
else
|
||||||
data = luax_checktype<love::image::ImageData>(L, 1, "ImageData", IMAGE_IMAGE_DATA_T);
|
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.");
|
return luaL_error(L, "Error creating image.");
|
||||||
|
|
||||||
// Create the image.
|
// Create the image.
|
||||||
|
|||||||
Reference in New Issue
Block a user