mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-12 21:40:19 +00:00
gpu: Respect the GDK_GL_DISABLE flag
It's now possible to disable sync support.
This commit is contained in:
parent
4e453acd4f
commit
cfbe3709bf
@ -184,6 +184,8 @@ gsk_gl_frame_submit (GskGpuFrame *frame,
|
|||||||
op = gsk_gpu_op_gl_command (op, frame, &state);
|
op = gsk_gpu_op_gl_command (op, frame, &state);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (gdk_gl_context_has_feature (GDK_GL_CONTEXT (gsk_gpu_frame_get_context (frame)),
|
||||||
|
GDK_GL_FEATURE_SYNC))
|
||||||
self->sync = glFenceSync (GL_SYNC_GPU_COMMANDS_COMPLETE, 0);
|
self->sync = glFenceSync (GL_SYNC_GPU_COMMANDS_COMPLETE, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user