Skip to content

Improve extension matching and webgl extensions support#2728

Merged
riccardobl merged 6 commits intojMonkeyEngine:masterfrom
riccardobl:extmatch
Apr 30, 2026
Merged

Improve extension matching and webgl extensions support#2728
riccardobl merged 6 commits intojMonkeyEngine:masterfrom
riccardobl:extmatch

Conversation

@riccardobl
Copy link
Copy Markdown
Member

@riccardobl riccardobl commented Apr 29, 2026

This PR improves extension matching, adds webgl extensions as well and fixes some extensions misuse

@riccardobl riccardobl marked this pull request as ready for review April 29, 2026 21:25
@riccardobl riccardobl changed the title Improve extension matching and webgl support Improve extension matching and webgl extensions support Apr 29, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates GLRenderer to improve OpenGL extension detection by adding a flexible hasExtension method that handles GL_ prefixes automatically and introducing a hasAnyExtension helper. These changes are applied across various capability checks to better support WebGL and different OpenGL implementations. I have identified a logic error in the new hasExtension method where it may incorrectly append a prefix to an already prefixed string, and I have suggested a simplification for the redundant extension checks in the BPTC compression logic.

Comment thread jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java Outdated
Comment thread jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java
riccardobl and others added 3 commits April 29, 2026 23:33
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Copilot <copilot@github.com>
@github-actions
Copy link
Copy Markdown

🖼️ Screenshot tests have failed.

The purpose of these tests is to ensure that changes introduced in this PR don't break visual features. They are visual unit tests.

📄 Where to find the report:

⚠️ If you didn't expect to change anything visual:
Fix your changes so the screenshot tests pass.

If you did mean to change things:
Review the replacement images in jme3-screenshot-tests/build/changed-images to make sure they really are improvements and then replace and commit the replacement images at jme3-screenshot-tests/src/test/resources.

If you are creating entirely new tests:
Find the new images in jme3-screenshot-tests/build/changed-images and commit the new images at jme3-screenshot-tests/src/test/resources.

Note; it is very important that the committed reference images are created on the build pipeline, locally created images are not reliable. Similarly tests will fail locally but you can look at the report to check they are "visually similar".

See https://github.com/jMonkeyEngine/jmonkeyengine/blob/master/jme3-screenshot-tests/README.md for more information

Contact @richardTingle (aka richtea) for guidance if required

@riccardobl riccardobl merged commit ffbb13f into jMonkeyEngine:master Apr 30, 2026
19 checks passed
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