Merge pull request #888 from MoochMcGee/master

Fix compilation when LOG_NV2A is defined
This commit is contained in:
S.Z 2016-05-21 00:05:23 +02:00
commit a2f6127830

View File

@ -2843,7 +2843,7 @@ int nv2a_renderer::geforce_exec_method(address_space & space, UINT32 chanel, UIN
offset = data & 0xffffff; offset = data & 0xffffff;
count = (data >> 24) & 0xff; count = (data >> 24) & 0xff;
#ifdef LOG_NV2A #ifdef LOG_NV2A
printf("vertex %d %d %d\n\r", type, offset, count); printf("vertex %d %d\n\r", offset, count);
#endif #endif
for (n = 0; n <= count; n++) { for (n = 0; n <= count; n++) {
read_vertices_0x1810(space, vertex_software + vertex_first, n + offset, 1); read_vertices_0x1810(space, vertex_software + vertex_first, n + offset, 1);
@ -4281,7 +4281,7 @@ void nv2a_renderer::geforce_assign_object(address_space & space, UINT32 chanel,
handle = space.read_dword(address); handle = space.read_dword(address);
handle = geforce_object_offset(handle); handle = geforce_object_offset(handle);
#ifdef LOG_NV2A #ifdef LOG_NV2A
machine().logerror(" assign to subchannel %d object at %d", subch, handle); machine().logerror(" assign to subchannel %d object at %d", subchannel, handle);
#endif #endif
channel[chanel][subchannel].object.objhandle = handle; channel[chanel][subchannel].object.objhandle = handle;
handle = ramin[handle / 4]; handle = ramin[handle / 4];