summaryrefslogtreecommitdiff
path: root/modules/openxr/extensions/openxr_opengl_extension.h
diff options
context:
space:
mode:
Diffstat (limited to 'modules/openxr/extensions/openxr_opengl_extension.h')
-rw-r--r--modules/openxr/extensions/openxr_opengl_extension.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/openxr/extensions/openxr_opengl_extension.h b/modules/openxr/extensions/openxr_opengl_extension.h
index 03a640cbfb..29a9f35c51 100644
--- a/modules/openxr/extensions/openxr_opengl_extension.h
+++ b/modules/openxr/extensions/openxr_opengl_extension.h
@@ -79,6 +79,9 @@ public:
virtual void on_instance_created(const XrInstance p_instance) override;
virtual void *set_session_create_and_get_next_pointer(void *p_next_pointer) override;
+ virtual void on_pre_draw_viewport(RID p_render_target) override;
+ virtual void on_post_draw_viewport(RID p_render_target) override;
+
virtual void get_usable_swapchain_formats(Vector<int64_t> &p_usable_swap_chains) override;
virtual void get_usable_depth_formats(Vector<int64_t> &p_usable_swap_chains) override;
virtual String get_swapchain_format_name(int64_t p_swapchain_format) const override;
@@ -103,6 +106,9 @@ private:
Vector<RID> texture_rids;
};
+ bool srgb_ext_is_available = true;
+ bool hw_linear_to_srgb_is_enabled = false;
+
bool check_graphics_api_support(XrVersion p_desired_version);
#ifdef ANDROID_ENABLED