OSDN Git Service

egl: restore surface type before linking config to its display
authorVarad Gautam <varadgautam@gmail.com>
Wed, 7 Oct 2015 04:18:14 +0000 (09:48 +0530)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 7 Oct 2015 14:05:20 +0000 (15:05 +0100)
commitf988eff37991272b3e685112136a8b2ae06386bf
tree8de9f5a99d52385b1f89932a14873333bffddacb
parent47d11990b2ca3eb666b8ac81fee7f7eb5019eba1
egl: restore surface type before linking config to its display

commit c2c2e9a (egl: implement EGL_KHR_gl_colorspace (v2)) leaves
_EGLConfig->SurfaceType set incorrectly before calling _eglLinkConfig(),
and the bad value is passed around to platform_android. set it to zero
as earlier.

v2: Set SurfaceType to 0, rather than surface_type (Suggested by Emil)

Cc: mesa-stable@lists.freedesktop.org
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91596
Signed-off-by: Varad Gautam <varadgautam@gmail.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
src/egl/drivers/dri2/egl_dri2.c