From 6c1c8570248d6a359140c3f5813bf60f2ddd7153 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Sat, 18 Jul 2015 11:21:26 +0200 Subject: [PATCH] gsdx-ogl-debug: properly detect start of instruction in dump --- plugins/GSdx/GSShaderOGL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/GSdx/GSShaderOGL.cpp b/plugins/GSdx/GSShaderOGL.cpp index dd7abc6f9e..9a80583671 100644 --- a/plugins/GSdx/GSShaderOGL.cpp +++ b/plugins/GSdx/GSShaderOGL.cpp @@ -366,7 +366,7 @@ int GSShaderOGL::DumpAsm(const std::string& file, GLuint p) // Now print asm as text char* asm_txt = strtok(&binary[asm_], "\n"); while (asm_txt != NULL && (strncmp(asm_txt, "END", 3) || !strncmp(asm_txt, "ENDIF", 5))) { - if (strncmp(asm_txt, "OUT", 3) == 0) { + if (!strncmp(asm_txt, "OUT", 3) || !strncmp(asm_txt, "TEMP", 4) || !strncmp(asm_txt, "LONG", 4)) { instructions = 0; } else if (instructions >= 0) { if (instructions == 0)