mirror of
https://github.com/citra-emu/citra.git
synced 2024-12-19 17:31:05 +00:00
Video_Core : Type fixes
This commit is contained in:
parent
972dccc3f6
commit
04756bdaf6
@ -103,7 +103,7 @@ static inline void WritePicaReg(u32 id, u32 value, u32 mask) {
|
|||||||
case PICA_REG_INDEX_WORKAROUND(command_buffer.trigger[0], 0x23c):
|
case PICA_REG_INDEX_WORKAROUND(command_buffer.trigger[0], 0x23c):
|
||||||
case PICA_REG_INDEX_WORKAROUND(command_buffer.trigger[1], 0x23d):
|
case PICA_REG_INDEX_WORKAROUND(command_buffer.trigger[1], 0x23d):
|
||||||
{
|
{
|
||||||
unsigned index = static_cast<int>(id - PICA_REG_INDEX(command_buffer.trigger[0]));
|
unsigned index = static_cast<unsigned>(id - PICA_REG_INDEX(command_buffer.trigger[0]));
|
||||||
u32* head_ptr = (u32*)Memory::GetPhysicalPointer(regs.command_buffer.GetPhysicalAddress(index));
|
u32* head_ptr = (u32*)Memory::GetPhysicalPointer(regs.command_buffer.GetPhysicalAddress(index));
|
||||||
g_state.cmd_list.head_ptr = g_state.cmd_list.current_ptr = head_ptr;
|
g_state.cmd_list.head_ptr = g_state.cmd_list.current_ptr = head_ptr;
|
||||||
g_state.cmd_list.length = regs.command_buffer.GetSize(index) / sizeof(u32);
|
g_state.cmd_list.length = regs.command_buffer.GetSize(index) / sizeof(u32);
|
||||||
|
@ -85,7 +85,7 @@ void GeometryDumper::AddTriangle(Vertex& v0, Vertex& v1, Vertex& v2) {
|
|||||||
vertices.push_back(v1);
|
vertices.push_back(v1);
|
||||||
vertices.push_back(v2);
|
vertices.push_back(v2);
|
||||||
|
|
||||||
int num_vertices = static_cast<int>(vertices.size());
|
size_t num_vertices = vertices.size();
|
||||||
faces.push_back({ num_vertices-3, num_vertices-2, num_vertices-1 });
|
faces.push_back({ num_vertices-3, num_vertices-2, num_vertices-1 });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user