Skip to content

glFlush before presenting a bound surface on CGL#380

Merged
mrobinson merged 1 commit into
servo:mainfrom
mrobinson:flush-before-presenting-bound-surface-macos
Jun 11, 2026
Merged

glFlush before presenting a bound surface on CGL#380
mrobinson merged 1 commit into
servo:mainfrom
mrobinson:flush-before-presenting-bound-surface-macos

Conversation

@mrobinson

@mrobinson mrobinson commented Jun 11, 2026

Copy link
Copy Markdown
Member

The old API (unbinding, presenting, binding) caused a flush
incidentally, but the new API does not. Flushes are necessary on macOS
only due to the fact that presenting is a CoreAnimation-only concept.
Without flushing the OpenGL commands they might not make it to the GPU
before the CoreAnimation work. The flush ensures they do.

Also bump the version, so that Servo can take advantage of this fix
immediately.

The old API (unbinding, presenting, binding) caused a flush
incidentally, but the new API does not. Flushes are necessary on macOS
only due to the fact that presenting is a CoreAnimation-only concept.
Without flushing the OpenGL commands they might not make it to the GPU
before the CoreAnimation work. The flush ensures they do.

Also bump the version, so that Servo can take advantage of this fix
immediately.

Signed-off-by: Martin Robinson <mrobinson@abandonedwig.info>
@mrobinson mrobinson enabled auto-merge June 11, 2026 07:28
@mrobinson mrobinson added this pull request to the merge queue Jun 11, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Jun 11, 2026
@mrobinson mrobinson added this pull request to the merge queue Jun 11, 2026
Merged via the queue into servo:main with commit b75d6dc Jun 11, 2026
26 checks passed
@mrobinson mrobinson deleted the flush-before-presenting-bound-surface-macos branch June 11, 2026 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants