mirror of
https://github.com/holub/mame
synced 2025-06-30 07:58:56 +03:00
Fix: 01496: all segae.c drivers: Crashing with Access Violation
This driver is creating bitmaps in DRIVER_INIT, which is not the best practice, and in fact, it broke as machine->primary_bitmap is not initalized yet.
This commit is contained in:
parent
2f37f76c57
commit
13f82f7331
@ -716,7 +716,7 @@ static void *start_vdp(running_machine *machine, int type)
|
||||
memset(chip->sprite_renderline,0x00,256+32);
|
||||
|
||||
chip->writemode = 0;
|
||||
chip->r_bitmap = video_screen_auto_bitmap_alloc(machine->primary_screen);
|
||||
chip->r_bitmap = auto_bitmap_alloc(256, 256, BITMAP_FORMAT_RGB15);
|
||||
|
||||
chip->sms_scanline_timer = timer_alloc(sms_scanline_timer_callback, chip);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user