mirror of https://github.com/bjornbytes/lovr.git
Fix renderView precedence;
This commit is contained in:
parent
445f813524
commit
0316378f74
|
@ -344,7 +344,7 @@ Texture* lovrTextureCreate(TextureInfo* info) {
|
|||
});
|
||||
|
||||
// Automatically create a renderable view for renderable non-volume textures
|
||||
if (info->usage & TEXTURE_RENDER && info->type != TEXTURE_3D && info->depth <= state.limits.renderSize[2]) {
|
||||
if ((info->usage & TEXTURE_RENDER) && info->type != TEXTURE_3D && info->depth <= state.limits.renderSize[2]) {
|
||||
if (info->mipmaps == 1) {
|
||||
texture->renderView = texture->gpu;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue