Skip to content

Commit

Permalink
fixed clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenegff committed Sep 14, 2023
1 parent 5c85ef5 commit e444329
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Components/Hlms/Unlit/src/OgreHlmsUnlit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -630,9 +630,9 @@ namespace Ogre
int32 numClipDist = std::max( getProperty( HlmsBaseProp::PsoClipDistances ), 1 );
setProperty( HlmsBaseProp::PsoClipDistances, numClipDist );
setProperty( HlmsBaseProp::GlobalClipPlanes, 1 );
// some Android devices(e.g. Mali-G77, Google Pixel 7 Pro) do not support Vulkan shaderClipDistance feature
if(!mRenderSystem->getCapabilities()->hasCapability(RSC_USER_CLIP_PLANES))
setProperty(HlmsBaseProp::EmulateClipDistances, 1); //turn on emulation of clipDistances
// some Android devices(e.g. Mali-G77, Google Pixel 7 Pro) do not support user clip planes
if( !mRenderSystem->getCapabilities()->hasCapability( RSC_USER_CLIP_PLANES ) )
setProperty( HlmsBaseProp::EmulateClipDistances, 1 );
}

mListener->preparePassHash( shadowNode, casterPass, dualParaboloid, sceneManager, this );
Expand Down
6 changes: 3 additions & 3 deletions OgreMain/src/OgreHlms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3253,9 +3253,9 @@ namespace Ogre
{
setProperty( HlmsBaseProp::PsoClipDistances, 1 );
setProperty( HlmsBaseProp::GlobalClipPlanes, 1 );
// some Android devices(e.g. Mali-G77, Google Pixel 7 Pro) do not support Vulkan shaderClipDistance feature
if(!mRenderSystem->getCapabilities()->hasCapability(RSC_USER_CLIP_PLANES))
setProperty(HlmsBaseProp::EmulateClipDistances, 1); //turn on emulation of clipDistances
// some Android devices(e.g. Mali-G77, Google Pixel 7 Pro) do not support user clip planes
if( !mRenderSystem->getCapabilities()->hasCapability( RSC_USER_CLIP_PLANES ) )
setProperty( HlmsBaseProp::EmulateClipDistances, 1 );
}

const RenderPassDescriptor *renderPassDesc = mRenderSystem->getCurrentPassDescriptor();
Expand Down

0 comments on commit e444329

Please sign in to comment.