diff --git a/Components/Hlms/Unlit/src/OgreHlmsUnlit.cpp b/Components/Hlms/Unlit/src/OgreHlmsUnlit.cpp index cf228909e97..3fb627afa7b 100644 --- a/Components/Hlms/Unlit/src/OgreHlmsUnlit.cpp +++ b/Components/Hlms/Unlit/src/OgreHlmsUnlit.cpp @@ -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 ); diff --git a/OgreMain/src/OgreHlms.cpp b/OgreMain/src/OgreHlms.cpp index f1e87135d92..0fec61cf890 100644 --- a/OgreMain/src/OgreHlms.cpp +++ b/OgreMain/src/OgreHlms.cpp @@ -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();