gsdx-ogl-debug: properly detect start of instruction in dump

This commit is contained in:
Gregory Hainaut 2015-07-18 11:21:26 +02:00
parent 698dda2310
commit 6c1c857024
1 changed files with 1 additions and 1 deletions

View File

@ -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)