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 {