1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 10:42:36 +01:00

fixed fragment decompiler

when adding a const, I added a check to see if it already exists
This commit is contained in:
elisha464 2014-01-31 22:44:35 +02:00
parent 7e591deaf3
commit 678e455b4f

View File

@ -123,6 +123,11 @@ std::string GLFragmentDecompilerThread::AddCond(int fp16)
std::string GLFragmentDecompilerThread::AddConst()
{
if(m_parr.HasParam(PARAM_UNIFORM, "vec4", std::string("fc") + std::to_string(m_size + 4 * 4)))
{
return std::string("fc") + std::to_string(m_size + 4 * 4);
}
mem32_ptr_t data(m_addr + m_size + m_offset);
m_offset += 4 * 4;