Fix handling of EGL_NONE as color space
authorCourtney Goeltzenleuchter <courtneygo@google.com>
Mon, 11 Sep 2017 19:06:48 +0000 (13:06 -0600)
committerCourtney Goeltzenleuchter <courtneygo@google.com>
Mon, 11 Sep 2017 23:51:54 +0000 (17:51 -0600)
commitdd7aa9e15d5742ad9b1716c29e2bcca16824a1cc
treedd57fa126e6d66d9e07240158814d970105d5b5d
parent94b6d1164001af38af15d73ef21af4f73975ca42
Fix handling of EGL_NONE as color space

Color space of EGL_NONE was getting passed down and
driver threw EGL_BAD_ATTRIBUTE in response.
Issue was caused when changing the colorspace from nullptr
to EGL_NONE, missed a couple of places that needed to
test against EGL_NONE instead of nullptr.

Bug: 65376495
Test: adb -d shell am start \
          -n com.drawelements.deqp/android.app.NativeActivity \
          -e cmdLine '"deqp --deqp-case=dEQP-EGL.functional.wide_color.* \
          --deqp-log-filename=/sdcard/dEQP-Log.qpa"'

Change-Id: If8812725be9d3858bf610c647ba53ff38944dd50
(cherry picked from commit 0d4e616c35fd3cbad82eb3c1f0a604dbbc6c8662)
modules/egl/teglWideColorTests.cpp