Small RSX fixes

- Fixed constants offset in FP decompiler.
- Fixed vertex textures initialization.
This commit is contained in:
DHrpcs3 2015-01-18 12:51:30 +02:00
parent 7da5714fd9
commit 482d470bf2
2 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ std::string GLFragmentDecompilerThread::AddConst()
auto data = vm::ptr<u32>::make(m_addr + m_size + m_offset);
m_offset += 4 * 4;
m_offset = 2 * 4 * sizeof(u32);
u32 x = GetData(data[0]);
u32 y = GetData(data[1]);
u32 z = GetData(data[2]);

View File

@ -1978,7 +1978,7 @@ void GLGSRender::ExecCMD()
m_gl_vertex_textures[i].Create();
m_gl_vertex_textures[i].Bind();
checkForGlError(fmt::Format("m_gl_vertex_textures[%d].Bind", i));
m_program.SetTex(i);
m_program.SetVTex(i);
m_gl_vertex_textures[i].Init(m_vertex_textures[i]);
checkForGlError(fmt::Format("m_gl_vertex_textures[%d].Init", i));
}