Fix renderView precedence;

This commit is contained in:
bjorn 2022-04-30 09:13:21 -07:00
parent 445f813524
commit 0316378f74
1 changed files with 1 additions and 1 deletions

View File

@ -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 {