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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user