Skip to content

Commit 4a1cd89

Browse files
committed
If SPIR-V compilation fails in glslang, store the error msg in "disasm"
1 parent 26c89b4 commit 4a1cd89

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

renderdoc/driver/gl/wrappers/gl_shader_funcs.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ void WrappedOpenGL::ShaderData::Compile(WrappedOpenGL &gl, ResourceId id)
7979
string s = CompileSPIRV(settings, sources, spirvwords);
8080
if(!spirvwords.empty())
8181
ParseSPIRV(&spirvwords.front(), spirvwords.size(), spirv);
82+
else
83+
disassembly = s;
8284

8385
reflection.ID = id;
8486
reflection.EntryPoint = "main";

0 commit comments

Comments
 (0)