mirror of
https://github.com/holub/mame
synced 2025-05-08 23:31:54 +03:00
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)
This commit is contained in:
parent
d22725a623
commit
aa78d4dd5d
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user