From 823821d775be1fcfbce605c5dd4a7c40a2de7f6d Mon Sep 17 00:00:00 2001 From: baldurk Date: Sun, 2 Nov 2014 20:11:19 +0000 Subject: [PATCH] A bit of a hack, only show stencil when exclusively selected * Thumbnails enable all channels, so if depth (Red) is enabled then ignore that stencil (Green) is also enabled. --- renderdoc/driver/gl/gl_debug.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderdoc/driver/gl/gl_debug.cpp b/renderdoc/driver/gl/gl_debug.cpp index 81d182d66..a2ae67dc4 100644 --- a/renderdoc/driver/gl/gl_debug.cpp +++ b/renderdoc/driver/gl/gl_debug.cpp @@ -264,7 +264,7 @@ bool GLReplay::RenderTexture(TextureDisplay cfg) RDCGLenum dsTexMode = eGL_NONE; if (tex.creationFlags & eTextureCreate_DSV) { - if (cfg.Green) + if (!cfg.Red && cfg.Green) { dsTexMode = eGL_STENCIL_INDEX;