egl: Fix the bad surface attributes combination checking for pbuffers. (v3)
authorGuillaume Charifi <guillaume.charifi@sfr.fr>
Mon, 20 Jun 2016 13:27:33 +0000 (15:27 +0200)
committerChad Versace <chad.versace@intel.com>
Thu, 7 Jul 2016 18:28:55 +0000 (11:28 -0700)
commit9fea9d6f8e862a8b3f569d37d06d1ff69c6e18f5
treee22c4431c3f6fcdfdb3b245c3af20160c6938701
parent7adb9b094894a512c019b3378eb9e3c69d830edc
egl: Fix the bad surface attributes combination checking for pbuffers. (v3)

Fixes a regression induced by commit a0674ce5c41903ccd161e89abb149621bfbc40d2:
When EGL_TEXTURE_FORMAT and EGL_TEXTURE_TARGET were both specified (and
both != EGL_NO_TEXTURE), an error was instantly triggered, before the
other one had even a chance to be checked, which is obviously not the
intended behaviour.

v2: Full commit hash, remove useless variables.
v3: [chadv] Add Fixes footers.

Fixes: piglit "spec/egl 1.4/eglcreatepbuffersurface and then glclear"
Fixes: piglit "spec/egl 1.4/largest possible eglcreatepbuffersurface and then glclear"
Signed-off-by: Guillaume Charifi <guillaume.charifi@sfr.fr>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Reviewed-by: Chad Versace <chad.versace@intel.com>
src/egl/main/eglsurface.c