summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video/poly.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/video/poly.h')
-rw-r--r--src/devices/video/poly.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/devices/video/poly.h b/src/devices/video/poly.h
index bd656b4147c..c619c50c2a1 100644
--- a/src/devices/video/poly.h
+++ b/src/devices/video/poly.h
@@ -718,6 +718,12 @@ uint32_t poly_manager<_BaseType, _ObjectData, _MaxParams, _MaxPolys>::render_tri
}
}
}
+ else // GCC 4.7.0 incorrectly claims these are uninitialized; humor it by initializing in the (hopefully rare) zero parameter case
+ {
+ param_start[0] = _BaseType(0.0);
+ param_dpdx[0] = _BaseType(0.0);
+ param_dpdy[0] = _BaseType(0.0);
+ }
// compute the X extents for each scanline
int32_t pixels = 0;