Previous 199869 Revisions Next

r20687 Sunday 3rd February, 2013 at 00:48:20 UTC by Ville Linde
video/gticlub.c: Fixed "sticky" 3D in gticlub and thunderh. [Ville Linde]
[src/mame/video]gticlub.c

trunk/src/mame/video/gticlub.c
r20686r20687
1111    TODO:
1212        - Fog equation and parameters are probably not accurate.
1313        - Winding Heat (and maybe others) have slight Z-fighting problems.
14        - 3D isn't always turned off properly (during title screens for example).
15          Figure out what controls this. Video mixer, layer priority or some 3D register?
14        - 3D in Solar Assault title isn't properly turned off (the SHARC keeps rendering 3D).
1615
1716*/
1817
r20686r20687
512511         K001005_fifo_write_ptr = 0;
513512         K001005_fifo_read_ptr = 0;
514513
515         if (data == 2 && K001005_3d_fifo_ptr > 0)
514         if (data == 2)
516515         {
517            render_polygons(space.machine());
518            poly_wait(poly, "render_polygons");
516            if (K001005_3d_fifo_ptr > 0)
517            {
518               render_polygons(space.machine());
519               poly_wait(poly, "render_polygons");
519520
520521#if LOG_POLY_FIFO
521            count = 0;
522            printf("\nrender %d\n", K001005_3d_fifo_ptr);
523            printf("------------------------------------\n");
522               count = 0;
523               printf("\nrender %d\n", K001005_3d_fifo_ptr);
524               printf("------------------------------------\n");
524525#endif
525526
526            K001005_3d_fifo_ptr = 0;
527               K001005_3d_fifo_ptr = 0;
528            }
529
527530            K001005_swap_buffers(space.machine());
528531         }
529532         break;
r20686r20687
14701473            poly_render_quad(poly, K001005_bitmap[K001005_bitmap_page], visarea, draw_scanline_2d_tex, 5, &v[0], &v[1], &v[2], &v[3]);
14711474         }
14721475      }
1473      else if (cmd == 0x80000121)
1476      else if (cmd == 0x80000121 || cmd == 0x80000126)
14741477      {
14751478         // no texture, color gouraud, Z
14761479

Previous 199869 Revisions Next


© 1997-2024 The MAME Team