regression fix #1

This commit is contained in:
raven02 2014-12-21 01:14:27 +08:00
parent c76dd371f3
commit c63f370d8b

View File

@ -3,7 +3,7 @@
#include "Utilities/Log.h"
#include "Emu/Memory/Memory.h"
#include "Emu/System.h"
#include "Emu/RSX/GSManager.h"
#include "Emu/RSX/GSManage
#include "RSXThread.h"
#include "Emu/SysCalls/Callback.h"
@ -95,11 +95,11 @@ RSXVertexData::RSXVertexData()
void RSXVertexData::Reset()
{
//frequency = 0;
//stride = 0;
//size = 0;
//type = 0;
//addr = 0;
frequency = 0;
stride = 0;
size = 0;
type = 0;
addr = 0;
data.clear();
}
@ -428,7 +428,7 @@ void RSXThread::DoCmd(const u32 fcmd, const u32 cmd, const u32 args_addr, const
u8 v2 = a0 >> 16;
u8 v3 = a0 >> 24;
//m_vertex_data[index].Reset();
m_vertex_data[index].Reset();
m_vertex_data[index].size = 4;
m_vertex_data[index].type = CELL_GCM_VERTEX_UB;
m_vertex_data[index].data.push_back(v0);
@ -447,7 +447,7 @@ void RSXThread::DoCmd(const u32 fcmd, const u32 cmd, const u32 args_addr, const
float v0 = (float&)a0;
float v1 = (float&)a1;
//m_vertex_data[index].Reset();
m_vertex_data[index].Reset();
m_vertex_data[index].type = CELL_GCM_VERTEX_F;
m_vertex_data[index].size = 2;
u32 pos = m_vertex_data[index].data.size();
@ -471,7 +471,7 @@ void RSXThread::DoCmd(const u32 fcmd, const u32 cmd, const u32 args_addr, const
float v2 = (float&)a2;
float v3 = (float&)a3;
//m_vertex_data[index].Reset();
m_vertex_data[index].Reset();
m_vertex_data[index].type = CELL_GCM_VERTEX_F;
m_vertex_data[index].size = 4;
u32 pos = m_vertex_data[index].data.size();
@ -2418,4 +2418,4 @@ void RSXThread::WriteIO32(u32 addr, u32 value)
{
throw fmt::Format("%s(rsxio_addr=0x%x): RSXIO memory not mapped", __FUNCTION__, addr);
}
}
}