From d8c112dd788047809b17b0b0a9ca7ca463d16969 Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 22 Jan 2020 14:43:52 +0000 Subject: [PATCH] Don't try to initialise texture when structured exporting on GL --- renderdoc/driver/gl/gl_initstate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderdoc/driver/gl/gl_initstate.cpp b/renderdoc/driver/gl/gl_initstate.cpp index 3eedc8d51..bf00a74d9 100644 --- a/renderdoc/driver/gl/gl_initstate.cpp +++ b/renderdoc/driver/gl/gl_initstate.cpp @@ -1352,7 +1352,7 @@ bool GLResourceManager::Serialise_InitialState(SerialiserType &ser, ResourceId i // only continue with serialising the contents if the format is valid (storage allocated). // Otherwise this texture has no initial state to apply - if(TextureState.internalformat != eGL_NONE && !ser.IsErrored()) + if(TextureState.internalformat != eGL_NONE && !ser.IsErrored() && !IsStructuredExporting(m_State)) { WrappedOpenGL::TextureData &details = ser.IsWriting() ? m_Driver->m_Textures[id] : m_Driver->m_Textures[GetLiveID(id)];