Merge pull request #359 from raven02/patch-2

FP: flush m_code_level & check emptyness of m_end_offsets
This commit is contained in:
B1ackDaemon 2014-06-22 00:41:51 +03:00
commit 6bf4695721

View File

@ -423,11 +423,16 @@ void GLFragmentDecompilerThread::Task()
m_size += m_offset;
// Check emptyness of m_end_offsets
if (m_end_offsets.empty()) break;
if(dst.end) break;
data.Skip(m_offset);
}
// flush m_code_level
m_code_level = 1;
m_shader = BuildCode();
main.clear();
m_parr.params.clear();