From 5d32cf6b07a5fbe459d7798572b86e94a67082b0 Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 31 Oct 2019 12:37:40 +0000 Subject: [PATCH] Force remap of Alpha8 on GL, it's not a supported format in core profile --- renderdoc/driver/gl/gl_replay.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/renderdoc/driver/gl/gl_replay.cpp b/renderdoc/driver/gl/gl_replay.cpp index 0ad0435ad..26194a539 100644 --- a/renderdoc/driver/gl/gl_replay.cpp +++ b/renderdoc/driver/gl/gl_replay.cpp @@ -3295,6 +3295,10 @@ bool GLReplay::IsTextureSupported(const ResourceFormat &format) if(format.type == ResourceFormatType::ASTC) return false; + // we don't try to replay alpha8 textures, as we stick strictly to core profile GL + if(format.type == ResourceFormatType::A8) + return false; + // BGRA is not accepted as an internal format in case of GL // EXT_texture_format_BGRA8888 is required for creating BGRA proxy textures in case of GLES if(format.BGRAOrder())