Skip to content

Conversation

@wenjieshen
Copy link
Collaborator

Request a stencil buffer and multisample buffers for the SDL GL contexts in Example and MultiCanvas so the direct back‑buffer path has the needed stencil/multisample support.

This PR should be merged only after thorvg/thorvg#3997 has been merged

@wenjieshen wenjieshen self-assigned this Dec 26, 2025
@wenjieshen wenjieshen requested a review from hermet as a code owner December 26, 2025 07:33
@hermet hermet added the enhancement Improve examples label Dec 27, 2025
@hermet hermet force-pushed the main branch 6 times, most recently from 5cbf5cf to f5bcc97 Compare January 2, 2026 02:27
@wenjieshen wenjieshen force-pushed the jay/gl-direct-backbuffer-example branch from a8cff02 to 137ff20 Compare January 5, 2026 17:32
Copilot AI review requested due to automatic review settings January 11, 2026 11:01
@wenjieshen wenjieshen force-pushed the jay/gl-direct-backbuffer-example branch from 137ff20 to 94bd182 Compare January 11, 2026 11:01
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR configures OpenGL contexts in the ThorVG examples to request stencil and multisample buffers, ensuring the direct back-buffer rendering path has the necessary support for stencil operations and antialiasing.

Changes:

  • Added SDL GL attributes for stencil buffer (8-bit depth)
  • Added SDL GL attributes for multisample antialiasing (4x MSAA)

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/MultiCanvas.cpp Added stencil and MSAA buffer requests to the OpenGL context setup
src/Example.h Added stencil and MSAA buffer requests to the GlWindow OpenGL context setup

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Request a stencil buffer and multisample buffers for the SDL GL contexts in
Example and MultiCanvas so the direct back‑buffer path has the needed
stencil/multisample support.
@wenjieshen wenjieshen force-pushed the jay/gl-direct-backbuffer-example branch from 94bd182 to 701fc4d Compare January 12, 2026 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Improve examples

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants