Avoid gcc divide by zero in getEdgeVolumeClip
authorMikko Tiusanen <mikko.tiusanen@siru.fi>
Fri, 11 Sep 2020 09:19:22 +0000 (12:19 +0300)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 25 Sep 2020 09:12:31 +0000 (05:12 -0400)
commit75330ac293d802997347cddc90b8327e5faf0e70
tree4ed37a602848593243019e3f5e37d9228efb431c
parentec9245b1022a11222793cc0240dc3d4ea875f0b8
Avoid gcc divide by zero in getEdgeVolumeClip

Adjusted getEdgeVolumeClip equation to avoid divide by zero without
causing a meaningful change in the calculation. Fixes divide by zero when
compiled using the gcc toolset.

Affects:

dEQP-GLES2.functional.clipping.triangle_vertex.clip_three.*

Components: OpenGL ES

VK-GL-CTS issue: 2035

Change-Id: I359f0486d98bfe4c642679d11bec4c8704c72943
framework/referencerenderer/rrRenderer.cpp