Use glReadnPixels only if KHR_robustness is supported
authorAlexander Galazin <alexander.galazin@arm.com>
Thu, 23 Feb 2017 12:01:18 +0000 (13:01 +0100)
committerPyry Haulos <phaulos@google.com>
Fri, 10 Mar 2017 16:48:14 +0000 (16:48 +0000)
commitd99ba132d92fb015a4008910a98a257fad1199a6
treedff2cdbb316369e8c6e50037b1324accc4715e45
parent6bc3c7a63456fdf267b65a5b80a003741a3aee4c
Use glReadnPixels only if KHR_robustness is supported

glReadnPixels is introduced in KHR_robustness/GLES 3.2.
Use of this function in GLES 3.1 tests will result in segfault
on implementations that don't support KHR_robustness.

Components: AOSP, Framework

Affects: dEQP-GLES31.functional.debug.negative_coverage.callbacks.buffer.read_pixels_format_mismatch

VK-GL-CTS issue: 166
Google bug: 36122027

Change-Id: Idbe8734f7d82882ea99c75a8b74d693ac6dd831f
(cherry picked from commit 219019495770c221e92f43df3e76a954c613210d)
framework/opengl/wrapper/glwInitExtES.inl
modules/gles31/functional/es31fNegativeBufferApiTests.cpp
scripts/opengl/src_util.py