Skip to content

Commit

Permalink
Fix wrong error message
Browse files Browse the repository at this point in the history
  • Loading branch information
darksylinc committed Dec 17, 2024
1 parent af29e96 commit 3176e0d
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions OgreMain/src/OgreRenderPassDescriptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,9 @@ namespace Ogre
OGRE_EXCEPT( Exception::ERR_INVALIDPARAMS,
"Texture '" + texture->getNameStr() +
"' is TilerMemoryless. For load actions it can only use clear, "
"dont_care or clear_on_tilers. Alternatively, launch OgreNext with 'Allow "
"Memoryless RTT' set to No. See Ogre.log for more info.",
"dont_care or clear_on_tilers. Alternatively, don't set TilerMemoryless "
"flag and create the Window with memoryless_depth_buffer = false. "
"See Ogre.log for more info.",
"RenderPassDescriptor::validateMemorylessTexture" );
}

Expand All @@ -189,21 +190,22 @@ namespace Ogre
OGRE_EXCEPT( Exception::ERR_INVALIDPARAMS,
"Texture '" + texture->getNameStr() +
"' is TilerMemoryless. For store actions it can only use dont_care. "
"Alternatively, launch OgreNext with 'Allow Memoryless RTT' set to No."
" See Ogre.log for more info.",
"Alternatively, don't set TilerMemoryless flag and create the Window "
"with memoryless_depth_buffer = false. See Ogre.log for more info.",
"RenderPassDescriptor::validateMemorylessTexture" );
}
}
else
{
if( storeAction != StoreAction::DontCare && storeAction != StoreAction::MultisampleResolve )
{
OGRE_EXCEPT( Exception::ERR_INVALIDPARAMS,
"MSAA Texture '" + texture->getNameStr() +
"' is TilerMemoryless. For store actions it can only use dont_care "
"or resolve. Alternatively, launch OgreNext with 'Allow Memoryless "
"RTT' set to No. See Ogre.log for more info.",
"RenderPassDescriptor::validateMemorylessTexture" );
OGRE_EXCEPT(
Exception::ERR_INVALIDPARAMS,
"MSAA Texture '" + texture->getNameStr() +
"' is TilerMemoryless. For store actions it can only use dont_care or "
"resolve. Alternatively, don't set TilerMemoryless flag and create the Window "
"with memoryless_depth_buffer = false. See Ogre.log for more info.",
"RenderPassDescriptor::validateMemorylessTexture" );
}
}
}
Expand Down

0 comments on commit 3176e0d

Please sign in to comment.