From e9c4de1dd5cc81766d860b546cfb4d0ce2d4c310 Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 8 Nov 2017 17:03:43 +0000 Subject: [PATCH] Suppress error for eGL_UNSIGNED_BYTE and eGL_BGRA --- renderdoc/driver/gl/gl_replay.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/renderdoc/driver/gl/gl_replay.cpp b/renderdoc/driver/gl/gl_replay.cpp index 7040f05aa..d3c5e6816 100644 --- a/renderdoc/driver/gl/gl_replay.cpp +++ b/renderdoc/driver/gl/gl_replay.cpp @@ -1007,13 +1007,11 @@ void GLReplay::SavePipelineState() fmt.type = ResourceFormatType::R10G10B10A2; fmt.compType = type == eGL_UNSIGNED_INT_2_10_10_10_REV ? CompType::UInt : CompType::SInt; } - else + else if(type != eGL_UNSIGNED_BYTE) { + // haven't checked the other cases work properly RDCERR("Unexpected BGRA type"); } - - // haven't checked the other cases work properly - RDCASSERT(type == eGL_UNSIGNED_BYTE); } pipe.m_VtxIn.attributes[i].Format = fmt;