Fix cursor flicker on nvidia when capturing monitor

Thanks to David Kleuker for bug testing
This commit is contained in:
dec05eba
2026-01-06 19:35:15 +01:00
parent f1acb95cf3
commit 3117f30143
3 changed files with 6 additions and 1 deletions

View File

@@ -523,4 +523,7 @@ void gsr_egl_swap_buffers(gsr_egl *self) {
self->glFlush();
// TODO: Use the minimal barrier required
self->glMemoryBarrier(GL_ALL_BARRIER_BITS); // GL_SHADER_IMAGE_ACCESS_BARRIER_BIT
// TODO: This is needed on nvidia because the cursor can flicker otherwise. Find a better solution
if(self->gpu_info.vendor == GSR_GPU_VENDOR_NVIDIA)
self->glFinish();
}