Native textures: initialize mipmapCount;

This commit is contained in:
bjorn 2019-06-25 18:59:31 -07:00
parent 749774e2fc
commit 09b6f74acf
1 changed files with 1 additions and 0 deletions

View File

@ -1324,6 +1324,7 @@ Texture* lovrTextureInitFromHandle(Texture* texture, uint32_t handle, TextureTyp
texture->width = (uint32_t) width;
texture->height = (uint32_t) height;
texture->depth = depth; // There isn't an easy way to get depth/layer count, so it's passed in...
texture->mipmapCount = 1;
return texture;
}