Small RSX fixes
- Fixed constants offset in FP decompiler. - Fixed vertex textures initialization.
This commit is contained in:
@@ -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));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user