From 09c1c8efdb2b112d144a169e04e9eeda35d16b77 Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 25 Jan 2019 14:34:48 +0000 Subject: [PATCH] Don't call GetBaseFormat on compressed texture format --- renderdoc/driver/gl/gl_debug.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/renderdoc/driver/gl/gl_debug.cpp b/renderdoc/driver/gl/gl_debug.cpp index c5985199e..cb0c2338f 100644 --- a/renderdoc/driver/gl/gl_debug.cpp +++ b/renderdoc/driver/gl/gl_debug.cpp @@ -971,7 +971,8 @@ bool GLReplay::GetMinMax(ResourceId texid, uint32_t sliceFace, uint32_t mip, uin { auto &texDetails = m_pDriver->m_Textures[texid]; - if(GetBaseFormat(texDetails.internalFormat) == eGL_DEPTH_STENCIL) + if(!IsCompressedFormat(texDetails.internalFormat) && + GetBaseFormat(texDetails.internalFormat) == eGL_DEPTH_STENCIL) { // for depth/stencil we need to run the code twice - once to fetch depth and once to fetch // stencil - since we can't process float depth and int stencil at the same time