Skip to content

Commit

Permalink
Fix lovr.graphics.newTexture when passing a single image;
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornbytes committed Apr 11, 2024
1 parent bdeee99 commit e08217e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/api/l_graphics.c
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,7 @@ static int l_lovrGraphicsNewTexture(lua_State* L) {
}
} else {
info.imageCount = 1;
info.images = images;
images[0] = luax_checkimage(L, index++);
info.layers = lovrImageGetLayerCount(images[0]);
if (lovrImageIsCube(images[0])) {
Expand Down

0 comments on commit e08217e

Please sign in to comment.