From 679f5bf4103e7ecdfded1c214147e8f52740cd33 Mon Sep 17 00:00:00 2001 From: Malcolm Nixon Date: Fri, 21 Jul 2023 19:34:12 -0400 Subject: [PATCH] Unbind the framebuffer when updating meshes. While the vertex shaders used to update the meshes aren't actually rendering to the framebuffer, they may still refuse to run with some framebuffers bound - such as XR with multiple views. --- drivers/gles3/storage/mesh_storage.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gles3/storage/mesh_storage.cpp b/drivers/gles3/storage/mesh_storage.cpp index ad4bdae2727..f3be6f509e2 100644 --- a/drivers/gles3/storage/mesh_storage.cpp +++ b/drivers/gles3/storage/mesh_storage.cpp @@ -1075,6 +1075,7 @@ void MeshStorage::update_mesh_instances() { } glEnable(GL_RASTERIZER_DISCARD); + glBindFramebuffer(GL_FRAMEBUFFER, 0); // Process skeletons and blend shapes using transform feedback while (dirty_mesh_instance_arrays.first()) { MeshInstance *mi = dirty_mesh_instance_arrays.first()->self();