Fix division by zero
authorAri Suonpaa <ari.suonpaa@siru.fi>
Mon, 16 May 2022 12:17:47 +0000 (15:17 +0300)
committerAri Suonpaa <ari.suonpaa@siru.fi>
Mon, 16 May 2022 12:17:47 +0000 (15:17 +0300)
commit1592b62076a6022b25a14c2c038dbaf60353e34c
tree27adf7f2ebcbacced5f89713aa6e7f4afd0cd1e5
parent6e2496ad81fd109b2ee00f6f585ac09f537264f1
Fix division by zero

Fixed format threshold calculation caused division by zero
whenever less than four channels were used by the format.
This change uses threshold zero for the empty channels.

VK-GL-CTS Issue: 3332

Affects:

dEQP-GLES31.functional.draw_buffers_indexed.random.max_implementation_draw_buffers.*

Components: OpenGL ES
Change-Id: Ib6c8ee6ee0fa82d1f0514b639938c61ed7762381
modules/gles31/functional/es31fDrawBuffersIndexedTests.cpp