mirror of
https://github.com/holub/mame
synced 2025-07-03 17:08:39 +03:00
tilemap_t::draw_instance: remove problem with nullptr math
This commit is contained in:
parent
58855267ea
commit
b0e802db81
@ -1260,7 +1260,7 @@ void tilemap_t::draw_instance(screen_device &screen, _BitmapClass &dest, const b
|
|||||||
{
|
{
|
||||||
const u16 *source0 = source_baseaddr + x_start;
|
const u16 *source0 = source_baseaddr + x_start;
|
||||||
typename _BitmapClass::pixel_t *dest0 = dest_baseaddr + x_start;
|
typename _BitmapClass::pixel_t *dest0 = dest_baseaddr + x_start;
|
||||||
u8 *pmap0 = priority_baseaddr + x_start;
|
u8 *pmap0 = priority_baseaddr ? (priority_baseaddr + x_start) : nullptr;
|
||||||
|
|
||||||
// if we were opaque, use the opaque renderer
|
// if we were opaque, use the opaque renderer
|
||||||
if (prev_trans == WHOLLY_OPAQUE)
|
if (prev_trans == WHOLLY_OPAQUE)
|
||||||
|
Loading…
Reference in New Issue
Block a user