summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorLily Garcia <staticdroidpop@gmail.com>2022-11-25 19:10:31 -0500
committerRĂ©mi Verschelde <rverschelde@gmail.com>2022-12-07 13:00:13 +0100
commite328a0bcf8a44f40d4f607e2fc8eb091b4c8e207 (patch)
tree14809fc3620fe0528cc692eb5464c62a227541eb /servers
parentc241f1c52386b21cf2df936ee927740a06970db6 (diff)
Check if VRS is supported on creating VRS object
Diffstat (limited to 'servers')
-rw-r--r--servers/rendering/renderer_rd/renderer_scene_render_rd.cpp5
1 files changed, 4 insertions, 1 deletions
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);
}