Skip to content

Commit

Permalink
[macOS] modify definition of bufferFetch1 to work when GL_ARB_texture…
Browse files Browse the repository at this point in the history
…_buffer_range is not available

- The definition of bufferFetch1 was failing for OpenGL < 4.2 resulting in compile errors for lighting shaders

Signed-off-by: Rhys Mainwaring <[email protected]>
  • Loading branch information
srmainwaring committed Oct 9, 2021
1 parent 67b5420 commit 5aceaf2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@

#define OGRE_Load3D( tex, iuv, lod ) texelFetch( tex, ivec3( iuv ), lod )

#define bufferFetch1( buffer, idx ) texelFetch( buffer, idx ).x
#define bufferFetch1( buffer, idx ) bufferFetch( buffer, idx ).x

#define OGRE_SAMPLER_ARG_DECL( samplerName )
#define OGRE_SAMPLER_ARG( samplerName )
Expand Down

0 comments on commit 5aceaf2

Please sign in to comment.