summaryrefslogtreecommitdiffstats
path: root/drivers/gles3
diff options
context:
space:
mode:
authorBastiaan Olij <mux213@gmail.com>2024-07-29 10:49:48 +1000
committerBastiaan Olij <mux213@gmail.com>2024-07-29 12:46:58 +1000
commit1eb0039b6eae3f4fab75ca6bb746712a233d32cb (patch)
treeec564d64e8a4cf47838008ab7a9feb8b9a4a8a08 /drivers/gles3
parent88d9325065a3e00e9e168ffad4ff93e12455a357 (diff)
downloadredot-engine-1eb0039b6eae3f4fab75ca6bb746712a233d32cb.tar.gz
Fix regression around OpenGL swapchain optimisation for OpenXR
Diffstat (limited to 'drivers/gles3')
-rw-r--r--drivers/gles3/rasterizer_gles3.cpp4
-rw-r--r--drivers/gles3/rasterizer_gles3.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gles3/rasterizer_gles3.cpp b/drivers/gles3/rasterizer_gles3.cpp
index 5ff95391a2..37e7256d76 100644
--- a/drivers/gles3/rasterizer_gles3.cpp
+++ b/drivers/gles3/rasterizer_gles3.cpp
@@ -107,7 +107,7 @@ void RasterizerGLES3::end_frame(bool p_swap_buffers) {
utils->capture_timestamps_end();
}
-void RasterizerGLES3::end_viewport(bool p_swap_buffers) {
+void RasterizerGLES3::gl_end_frame(bool p_swap_buffers) {
if (p_swap_buffers) {
DisplayServer::get_singleton()->swap_buffers();
} else {
@@ -491,7 +491,7 @@ void RasterizerGLES3::set_boot_image(const Ref<Image> &p_image, const Color &p_c
copy_effects->copy_to_rect(screenrect);
glBindTexture(GL_TEXTURE_2D, 0);
- end_viewport(true);
+ gl_end_frame(true);
texture_storage->texture_free(texture);
}
diff --git a/drivers/gles3/rasterizer_gles3.h b/drivers/gles3/rasterizer_gles3.h
index 0d0c26016d..80a4a792bb 100644
--- a/drivers/gles3/rasterizer_gles3.h
+++ b/drivers/gles3/rasterizer_gles3.h
@@ -99,7 +99,7 @@ public:
void blit_render_targets_to_screen(DisplayServer::WindowID p_screen, const BlitToScreen *p_render_targets, int p_amount);
- void end_viewport(bool p_swap_buffers);
+ void gl_end_frame(bool p_swap_buffers);
void end_frame(bool p_swap_buffers);
void finalize();