Correction of v0.xyzw assignment.
This commit is contained in:
parent
186b5fa8ee
commit
c981ff23b1
|
@ -8685,12 +8685,13 @@ xbox::void_xt WINAPI xbox::EMUPATCH(D3DDevice_RunVertexStateShader)
|
|||
PGRAPHState* pg = &(dev->pgraph);
|
||||
|
||||
float vertex_state_shader_v0[4];
|
||||
|
||||
if (pData != nullptr)
|
||||
//if pData != nullptr, then it contents v0.xyzw, we shall copy the binary content directly.
|
||||
memcpy(vertex_state_shader_v0,pData, sizeof(vertex_state_shader_v0));
|
||||
else
|
||||
//for pData == nullptr, this data is not supposed to be used. but we assign v0.xyzw 0.0f in each component just in case.
|
||||
for (int slot = 0; slot < 4; slot++)
|
||||
{
|
||||
if (pData != nullptr)
|
||||
vertex_state_shader_v0[slot] = pData[slot];
|
||||
else
|
||||
vertex_state_shader_v0[slot] = 0.0f;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue