mirror of https://github.com/bjornbytes/lovr.git
Fix lovr.graphics.newTexture when passing a single image;
This commit is contained in:
parent
bdeee99953
commit
e08217e6ca
|
@ -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])) {
|
||||
|
|
Loading…
Reference in New Issue