Fix regression around OpenGL swapchain optimisation for OpenXR

This commit is contained in:
Bastiaan Olij
2024-07-29 10:49:48 +10:00
parent 88d9325065
commit 1eb0039b6e
6 changed files with 8 additions and 8 deletions

View File

@@ -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);
}