Skip to content

Fix msaa availablity test - #21158

Open
biagas wants to merge 2 commits into
developfrom
bugfix/biagas/fix_msaa_availablity_test
Open

biagas wants to merge 2 commits into
developfrom
bugfix/biagas/fix_msaa_availablity_test

Conversation

@biagas

@biagas biagas commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Description

Fixed query of MSAA availability (GL_MAX_SAMPLES > 1) so that it won't crash.

Per @markcmiller86 's suggestion, MSAA availabilty is now represented as an enum: MSAA_AVAILABLE, MSAA_NOT_AVAILABLE, MSAA_UNKNOWN (initial setting). This RenderingAtts field is no longer persistent (e.g. not saved to sessions or configs).

When trying to determine if MSAA is available, a NULL window, or an uninitialized window will return MSAA_UNKNOWN.

If a window is not current and cannot successfully be made current, MSAA_NOT_AVAILABLE is returned.

If querying GL_MAX_SAMPLES returns a value > 1 MSAA_AVAILABLE is returned, otherwise MSAA_NOT_AVAILABLE is returned.

Re-generated attributes.rst (picked up more than just RenderingAttributes changes).

Added QScrollArea's to RenderingWindow for easier display on smaller laptop monitors. backed this out due to issues with sizing.

Type of change

  • Bug fix
  • [ ] New feature
  • [ ] Documentation update
  • [ ] Other

How Has This Been Tested?

On Windows and Linux, no crash on startup if a config file has "Scalable" turned on.
On Windows, initial query of MSAAvailable returns 'UNKNOWN', but subsequent returns 'AVAILABLE'
On Linux with VIsIt built agains Mesa, initial query of MSAAvailable returns 'UNKNOWN', but subsequent returns 'NOT_AVAILABLE'.

Checklist:

  • I have commented my code where applicable.
  • I have updated the release notes.
  • I have made corresponding changes to the documentation.
  • [ ] I have added debugging support to my changes.
  • [ ] I have added tests that prove my fix is effective or that my feature works.
  • [ ] I have confirmed new and existing unit tests pass locally with my changes.
  • [ ] I have added new baselines for any new tests to the repo.
  • [ ] I have NOT made any changes to protocol or public interfaces in an RC branch.

@biagas

biagas commented Sep 15, 2026

Copy link
Copy Markdown
Contributor Author

This replaces #20923.

@biagas
biagas force-pushed the bugfix/biagas/fix_msaa_availablity_test branch from 1a80829 to 2d68ba4 Compare September 17, 2026 17:37
@biagas
biagas marked this pull request as draft September 17, 2026 19:06
@biagas

biagas commented Sep 17, 2026

Copy link
Copy Markdown
Contributor Author

converted to draft, as I'm looking into an issue with the scroll area changes I made.

Prevents crash, yet still enables MSAA when avaialable.
Makes RenderingAttributes::MSAAAvailablity a tri-state enum:
MSAA_AVAILABLE; MSAA_NOT_AVAILABLE; MSAA_UNKOWN.
@biagas
biagas force-pushed the bugfix/biagas/fix_msaa_availablity_test branch from d56bbb4 to 3631dce Compare September 22, 2026 15:47
Update release notes.
@biagas
biagas force-pushed the bugfix/biagas/fix_msaa_availablity_test branch from 3631dce to b1d991c Compare September 22, 2026 17:24
@biagas
biagas marked this pull request as ready for review September 22, 2026 17:27
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.

1 participant