From e328a0bcf8a44f40d4f607e2fc8eb091b4c8e207 Mon Sep 17 00:00:00 2001 From: Lily Garcia Date: Fri, 25 Nov 2022 19:10:31 -0500 Subject: Check if VRS is supported on creating VRS object --- servers/rendering/renderer_rd/renderer_scene_render_rd.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'servers') diff --git a/servers/rendering/renderer_rd/renderer_scene_render_rd.cpp b/servers/rendering/renderer_rd/renderer_scene_render_rd.cpp index 0f4dda3f11..1b5665855f 100644 --- a/servers/rendering/renderer_rd/renderer_scene_render_rd.cpp +++ b/servers/rendering/renderer_rd/renderer_scene_render_rd.cpp @@ -1419,10 +1419,13 @@ void RendererSceneRenderRD::init() { cull_argument.set_page_pool(&cull_argument_pool); bool can_use_storage = _render_buffers_can_be_storage(); + bool can_use_vrs = is_vrs_supported(); bokeh_dof = memnew(RendererRD::BokehDOF(!can_use_storage)); copy_effects = memnew(RendererRD::CopyEffects(!can_use_storage)); tone_mapper = memnew(RendererRD::ToneMapper); - vrs = memnew(RendererRD::VRS); + if (can_use_vrs) { + vrs = memnew(RendererRD::VRS); + } if (can_use_storage) { fsr = memnew(RendererRD::FSR); } -- cgit v1.2.3