Skip to content

Commit

Permalink
Fixed a problem in GL3PlusRenderSystem. The mUseAdjacency cannot be s…
Browse files Browse the repository at this point in the history
…imply overwritten, but it should be set to true only if geometry shader explicitly set it, otherwise the value must be preserved from the initialization where it could be already set to true.
  • Loading branch information
Lubomir Kovac committed Jul 26, 2024
1 parent bc1f732 commit 90889c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion RenderSystems/GL3Plus/src/OgreGL3PlusRenderSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2271,7 +2271,8 @@ namespace Ogre
mActiveGeometryGpuProgramParameters = mPso->geometryShader->getDefaultParameters();
mGeometryProgramBound = true;

mUseAdjacency = mPso->geometryShader->isAdjacencyInfoRequired();
if (mPso->geometryShader->isAdjacencyInfoRequired())
mUseAdjacency = true;
}
if( mPso->hullShader )
{
Expand Down

0 comments on commit 90889c6

Please sign in to comment.