mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +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
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user