[macOS] modify definition of bufferFetch1 to work when GL_ARB_texture_buffer_range is not available #462
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR modifies the shader piece
CrossPlatformSettings_piece_all.glsl
to work when the OpenGL extensionGL_ARB_texture_buffer_range
is not available.The definition of
bufferFetch1
was failing for OpenGL < 4.2 resulting in compile errors for lighting shaders🦟 Bug fix
Partial fix of #422
Summary
This is a single line change to the cross platform settings shader piece. It changes the definition of
bufferFetch1
to use thebufferFetch
definition which has compatibility settings rather than usetexelFetch
directly.Before this change the shaders would fail to compile using the ogre2 render engine on macOS. After this change the shaders will compile.
Checklist
codecheck
passed (See contributing)Not all tests pass on macOS. The failures are listed below, but are not connected to the changes in this PR.
Note to maintainers: Remember to use Squash-Merge
🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸