diff --git a/src/mame/includes/namcos21.h b/src/mame/includes/namcos21.h index 87720852ed1..50dcf887014 100644 --- a/src/mame/includes/namcos21.h +++ b/src/mame/includes/namcos21.h @@ -73,6 +73,7 @@ public: optional_device m_gpu_intc; std::unique_ptr m_videoram; + std::unique_ptr m_colorram; std::unique_ptr m_winrun_dspcomram; uint16_t m_winrun_poly_buf[WINRUN_MAX_POLY_PARAM]; int m_winrun_poly_index; diff --git a/src/mame/video/namcos21.cpp b/src/mame/video/namcos21.cpp index b3aed4c0d6a..af0c08d3de9 100644 --- a/src/mame/video/namcos21.cpp +++ b/src/mame/video/namcos21.cpp @@ -52,7 +52,6 @@ WRITE16_MEMBER(namcos21_state::winrun_gpu_register_w) WRITE16_MEMBER(namcos21_state::winrun_gpu_videoram_w) { - uint8_t *videoram = m_videoram.get(); int color = data>>8; int mask = data&0xff; int i; @@ -60,15 +59,15 @@ WRITE16_MEMBER(namcos21_state::winrun_gpu_videoram_w) { if( mask&(0x01<(0x80000); + m_colorram = std::make_unique(0x80000); } allocate_poly_framebuffer(); c355_obj_init(