summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Angelo Salese <angelosa@users.noreply.github.com>2011-08-22 20:10:58 +0000
committer Angelo Salese <angelosa@users.noreply.github.com>2011-08-22 20:10:58 +0000
commit82636fb949ff8136c82989d2cad039492edcd3db (patch)
tree134d99b135c392addc2c05b87b5e0f827208d365
parent1af7f88ba75ea8821255583fd0bae6a903965ff0 (diff)
Improved previous fix by Arbee's suggestion
-rw-r--r--src/mame/video/taitojc.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/mame/video/taitojc.c b/src/mame/video/taitojc.c
index e297780cc77..9269fe37bc0 100644
--- a/src/mame/video/taitojc.c
+++ b/src/mame/video/taitojc.c
@@ -359,10 +359,10 @@ static void render_solid_scan(void *dest, INT32 scanline, const poly_extent *ext
int x;
// avoid crash in dendeg2
- if (!extra->zbuffer)
- {
- return;
- }
+ //if (!extra->zbuffer)
+ //{
+ // return;
+ //}
zb = BITMAP_ADDR16(extra->zbuffer, scanline, 0);
@@ -393,10 +393,10 @@ static void render_shade_scan(void *dest, INT32 scanline, const poly_extent *ext
int x;
// avoid crash in landgear/dangcurv
- if (!extra->zbuffer)
- {
- return;
- }
+ //if (!extra->zbuffer)
+ //{
+ // return;
+ //}
zb = BITMAP_ADDR16(extra->zbuffer, scanline, 0);
@@ -579,6 +579,9 @@ void taitojc_render_polygons(running_machine &machine, UINT16 *polygon_fifo, int
}
printf("\n");
*/
+ poly_extra_data *extra = (poly_extra_data *)poly_get_extra_data(state->m_poly);
+
+ extra->zbuffer = state->m_zbuffer;
for (i=0; i < 4; i++)
{