From d57c1068bd4590c0d42ec26e08c1b6a30bda81e8 Mon Sep 17 00:00:00 2001 From: nikplu Date: Mon, 15 May 2023 14:19:23 +0200 Subject: [PATCH] Fix mapping GL_INT_2_10_10_10_REV and GL_UNSIGNED_INT_2_10_10_10_REV --- renderdoc/driver/gl/gl_replay.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/renderdoc/driver/gl/gl_replay.cpp b/renderdoc/driver/gl/gl_replay.cpp index 69fa5e8ad..280552ba5 100644 --- a/renderdoc/driver/gl/gl_replay.cpp +++ b/renderdoc/driver/gl/gl_replay.cpp @@ -964,12 +964,12 @@ void GLReplay::SavePipelineState(uint32_t eventId) case eGL_INT_2_10_10_10_REV: fmt.type = ResourceFormatType::R10G10B10A2; fmt.compCount = 4; - fmt.compType = CompType::UInt; + fmt.compType = CompType::SInt; break; case eGL_UNSIGNED_INT_2_10_10_10_REV: fmt.type = ResourceFormatType::R10G10B10A2; fmt.compCount = 4; - fmt.compType = CompType::SInt; + fmt.compType = CompType::UInt; break; case eGL_UNSIGNED_INT_10F_11F_11F_REV: fmt.type = ResourceFormatType::R11G11B10;