Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
darksylinc committed Sep 18, 2023
1 parent b99d694 commit 75539ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RenderSystems/GL3Plus/src/OgreGL3PlusTextureGpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,7 @@ namespace Ogre
void GL3PlusTextureGpuRenderTarget::setOrientationMode( OrientationMode orientationMode )
{
OGRE_ASSERT_LOW( mResidencyStatus == GpuResidency::OnStorage || isRenderWindowSpecific() ||
isRenderToTexture() && mWidth == mHeight );
( isRenderToTexture() && mWidth == mHeight ) );
#if OGRE_NO_VIEWPORT_ORIENTATIONMODE == 0
mOrientationMode = orientationMode;
#endif
Expand Down
2 changes: 1 addition & 1 deletion RenderSystems/Vulkan/src/OgreVulkanTextureGpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ namespace Ogre
void VulkanTextureGpuRenderTarget::setOrientationMode( OrientationMode orientationMode )
{
OGRE_ASSERT_LOW( mResidencyStatus == GpuResidency::OnStorage || isRenderWindowSpecific() ||
isRenderToTexture() && mWidth == mHeight );
( isRenderToTexture() && mWidth == mHeight ) );
#if OGRE_NO_VIEWPORT_ORIENTATIONMODE == 0
mOrientationMode = orientationMode;
#endif
Expand Down

0 comments on commit 75539ac

Please sign in to comment.