summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/model1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/model1.cpp')
-rw-r--r--src/mame/video/model1.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/video/model1.cpp b/src/mame/video/model1.cpp
index a1e10dcfe49..65fe8bed3e6 100644
--- a/src/mame/video/model1.cpp
+++ b/src/mame/video/model1.cpp
@@ -471,7 +471,7 @@ void model1_state::unsort_quads() const
void model1_state::draw_quads(bitmap_rgb32 &bitmap, const rectangle &cliprect)
{
- view_t *view = m_view;
+ view_t *view = m_view.get();
int count = m_quadpt - m_quaddb;
/* clip to the cliprect */
@@ -598,7 +598,7 @@ void model1_state::fclip_push_quad_next(int level, quad_t& q, point_t *p1, point
void model1_state::fclip_push_quad(int level, quad_t& q)
{
- view_t *view = m_view;
+ view_t *view = m_view.get();
if (level == 4)
{
@@ -1564,7 +1564,7 @@ void model1_state::tgp_scan()
VIDEO_START_MEMBER(model1_state, model1)
{
- m_view = auto_alloc_clear(machine(), <model1_state::view_t>());
+ m_view = std::make_unique<model1_state::view_t>();
m_poly_ram = make_unique_clear<uint32_t[]>(0x400000);
m_tgp_ram = make_unique_clear<uint16_t[]>(0x100000-0x40000);
@@ -1592,7 +1592,7 @@ VIDEO_START_MEMBER(model1_state, model1)
uint32_t model1_state::screen_update_model1(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
{
- model1_state::view_t *view = m_view;
+ model1_state::view_t *view = m_view.get();
#if 0
{
bool mod = false;