Previous 199869 Revisions Next

r34175 Saturday 3rd January, 2015 at 22:09:03 UTC by Couriersud
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

trunk/src/emu/render.c
r242686r242687
289289    color.b = 0;
290290    flags = 0;
291291    width = 0.0f;
292    // texcoords; FIXME
292    texture.set_palette(NULL);
293    texture = render_texinfo();
294    texcoords.bl.u = 0.0f;
295    texcoords.bl.v = 0.0f;
296    texcoords.br.u = 0.0f;
297    texcoords.br.v = 0.0f;
298    texcoords.tl.u = 0.0f;
299    texcoords.tl.v = 0.0f;
300    texcoords.tr.u = 0.0f;
301    texcoords.tr.v = 0.0f;
293302
294303    // do not clear m_next!
295304    // memset(&type, 0, FPTR(&texcoords + 1) - FPTR(&type));
296
297    texture.set_palette(NULL);
298    texture = render_texinfo();
299305}
300306
301307


Previous 199869 Revisions Next


© 1997-2024 The MAME Team