mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-13 18:28:35 +12:00
Small RSX fixes
- Fixed constants offset in FP decompiler. - Fixed vertex textures initialization.
This commit is contained in:
parent
7da5714fd9
commit
482d470bf2
2 changed files with 2 additions and 2 deletions
|
@ -104,7 +104,7 @@ std::string GLFragmentDecompilerThread::AddConst()
|
||||||
|
|
||||||
auto data = vm::ptr<u32>::make(m_addr + m_size + m_offset);
|
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 x = GetData(data[0]);
|
||||||
u32 y = GetData(data[1]);
|
u32 y = GetData(data[1]);
|
||||||
u32 z = GetData(data[2]);
|
u32 z = GetData(data[2]);
|
||||||
|
|
|
@ -1978,7 +1978,7 @@ void GLGSRender::ExecCMD()
|
||||||
m_gl_vertex_textures[i].Create();
|
m_gl_vertex_textures[i].Create();
|
||||||
m_gl_vertex_textures[i].Bind();
|
m_gl_vertex_textures[i].Bind();
|
||||||
checkForGlError(fmt::Format("m_gl_vertex_textures[%d].Bind", i));
|
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]);
|
m_gl_vertex_textures[i].Init(m_vertex_textures[i]);
|
||||||
checkForGlError(fmt::Format("m_gl_vertex_textures[%d].Init", i));
|
checkForGlError(fmt::Format("m_gl_vertex_textures[%d].Init", i));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue