-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Safer multisample detection #9336
base: v7.x
Are you sure you want to change the base?
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 1008800:
|
Before I mark this ready-for-review: Should we change how |
I'll leave this for another PR. |
…anged" This reverts commit 76efee6.
I put the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry it took so long to get round to this! all makes sense! one tiny comment. Could we move the logic out to a getMaxSamples()
function? - but other than that good to go!
Description of change
Should fix #9269.
Number of samples is chosen based on the internal format. Samples above
MAX_SAMPLES
are filtered out as well as samples that are not valid depth/stencil samples.Changed the type of
GLFramebuffer.multisample
tonumber
, because technically it isn't necessarily a value inMSAA_QUALITY
.Pre-Merge Checklist
npm run lint
)npm run test
)