Skip to content

Commit

Permalink
Merge pull request #84267 from dsnopek/fix-webxr-emulator-with-no-2d
Browse files Browse the repository at this point in the history
Fix WebXR on desktop emulator by reseting active texture unit
  • Loading branch information
akien-mga committed Nov 1, 2023
2 parents 98baac7 + 67d8102 commit 1bd46fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gles3/rasterizer_scene_gles3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2497,6 +2497,8 @@ void RasterizerSceneGLES3::render_scene(const Ref<RenderSceneBuffers> &p_render_
}
glDisable(GL_BLEND);
texture_storage->render_target_disable_clear_request(rb->render_target);

glActiveTexture(GL_TEXTURE0);
}

template <PassMode p_pass_mode>
Expand Down

0 comments on commit 1bd46fe

Please sign in to comment.