Skip to content

Commit

Permalink
[GL3+] Fix wrong call when setting sampler into compare mode
Browse files Browse the repository at this point in the history
  • Loading branch information
darksylinc committed Dec 31, 2021
1 parent 0c476f3 commit d06d800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RenderSystems/GL3Plus/src/OgreGL3PlusRenderSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1817,7 +1817,7 @@ namespace Ogre {
{
OCGE( glSamplerParameteri( samplerName, GL_TEXTURE_COMPARE_MODE,
GL_COMPARE_REF_TO_TEXTURE ) );
OCGE( glSamplerParameterf( samplerName, GL_TEXTURE_COMPARE_FUNC,
OCGE( glSamplerParameteri( samplerName, GL_TEXTURE_COMPARE_FUNC,
convertCompareFunction( newBlock->mCompareFunction ) ) );
}

Expand Down

0 comments on commit d06d800

Please sign in to comment.