mirror of https://github.com/bjornbytes/lovr.git
Native textures: initialize mipmapCount;
This commit is contained in:
parent
749774e2fc
commit
09b6f74acf
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue