From 0316378f744b2d83430dbd2f15d5bb70eb8c9b74 Mon Sep 17 00:00:00 2001 From: bjorn Date: Sat, 30 Apr 2022 09:13:21 -0700 Subject: [PATCH] Fix renderView precedence; --- src/modules/graphics/graphics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/graphics/graphics.c b/src/modules/graphics/graphics.c index 3419d6cb..a0575ed5 100644 --- a/src/modules/graphics/graphics.c +++ b/src/modules/graphics/graphics.c @@ -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 {