From aa78d4dd5d1d1114760926504064d2a5edb99e1c Mon Sep 17 00:00:00 2001 From: couriersud Date: Sat, 3 Jan 2015 23:09:03 +0100 Subject: 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) --- src/emu/render.c | 14 ++++++++++---- 1 file 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(); } -- cgit v1.2.3