mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 13:20:54 +00:00
Flush texture overlay cache whenever texture ID or type hint changes
* Even if the overlay didn't change, a new texture ID requires a re-draw of the overlay.
This commit is contained in:
@@ -119,7 +119,8 @@ ReplayOutput::~ReplayOutput()
|
||||
|
||||
void ReplayOutput::SetTextureDisplay(const TextureDisplay &o)
|
||||
{
|
||||
if(o.overlay != m_RenderData.texDisplay.overlay)
|
||||
if(o.overlay != m_RenderData.texDisplay.overlay ||
|
||||
o.typeHint != m_RenderData.texDisplay.typeHint || o.texid != m_RenderData.texDisplay.texid)
|
||||
{
|
||||
if(m_RenderData.texDisplay.overlay == DebugOverlay::ClearBeforeDraw ||
|
||||
m_RenderData.texDisplay.overlay == DebugOverlay::ClearBeforePass)
|
||||
|
||||
Reference in New Issue
Block a user