Fix: GPU calls in CPU compositor

This patch removes an incorrect GPU call that shouldn't happen in the
CPU compositor, otherwise, it will cause a crash due to a missing
context.
This commit is contained in:
Omar Emara
2024-08-16 15:57:15 +03:00
parent a54cf472c3
commit 912284cfa3

View File

@@ -567,7 +567,7 @@ class Context : public realtime_compositor::Context {
* once, and we can't cancel work that was already submitted to the GPU. This does have a
* performance penalty, but in practice, the improved interactivity is worth it according to
* user feedback. */
if (!this->render_context()) {
if (this->use_gpu() && !this->render_context()) {
GPU_finish();
}
}