summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author couriersud <couriersud@arcor.de>2015-01-03 23:09:03 +0100
committer couriersud <couriersud@arcor.de>2015-01-03 23:09:03 +0100
commitaa78d4dd5d1d1114760926504064d2a5edb99e1c (patch)
treee66024ff7922dcc3594ca1c5545e21bcc107e0c6
parentd22725a6235a250ebee30888600c154e1cc991df (diff)
Added zeroing of texcoords to reset() of render_primitve. The omission
of doing so may have cause strange drawing issues in case the code assumes these to be 0.0f (nw)
-rw-r--r--src/emu/render.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/emu/render.c b/src/emu/render.c
index 55872e88967..014f85f8903 100644
--- a/src/emu/render.c
+++ b/src/emu/render.c
@@ -289,13 +289,19 @@ void render_primitive::reset()
color.b = 0;
flags = 0;
width = 0.0f;
- // texcoords; FIXME
+ texture.set_palette(NULL);
+ texture = render_texinfo();
+ texcoords.bl.u = 0.0f;
+ texcoords.bl.v = 0.0f;
+ texcoords.br.u = 0.0f;
+ texcoords.br.v = 0.0f;
+ texcoords.tl.u = 0.0f;
+ texcoords.tl.v = 0.0f;
+ texcoords.tr.u = 0.0f;
+ texcoords.tr.v = 0.0f;
// do not clear m_next!
// memset(&type, 0, FPTR(&texcoords + 1) - FPTR(&type));
-
- texture.set_palette(NULL);
- texture = render_texinfo();
}