From b81e0f9e4c838ded834ddbd733e0651820540d67 Mon Sep 17 00:00:00 2001 From: raven02 Date: Mon, 29 Dec 2014 06:22:54 +0800 Subject: [PATCH] Remove duplicate code --- rpcs3/Emu/RSX/GL/GLVertexProgram.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/rpcs3/Emu/RSX/GL/GLVertexProgram.cpp b/rpcs3/Emu/RSX/GL/GLVertexProgram.cpp index 186c70ed29..7a0b3f3e81 100644 --- a/rpcs3/Emu/RSX/GL/GLVertexProgram.cpp +++ b/rpcs3/Emu/RSX/GL/GLVertexProgram.cpp @@ -562,7 +562,9 @@ void GLVertexDecompilerThread::Task() m_instr_count++; if (i < m_data.size()) + { LOG_ERROR(RSX, "Program end before buffer end."); + } break; } @@ -739,17 +741,6 @@ void GLVertexDecompilerThread::Task() Emu.Pause(); break; } - - if (d3.end) - { - m_instr_count++; - - if (i < m_data.size()) - { - LOG_ERROR(RSX, "Program end before buffer end."); - } - break; - } } if (is_has_BRA || !m_jump_lvls.empty())