egl/surfaceless: Fix segfault in eglSwapBuffers
authorChad Versace <chadversary@chromium.org>
Tue, 18 Oct 2016 16:39:49 +0000 (09:39 -0700)
committerChad Versace <chadversary@chromium.org>
Tue, 18 Oct 2016 18:12:22 +0000 (11:12 -0700)
commit52a6483e8a016f3dec7db8634a85b9fa62e86693
treeafad610aa002bf384e9a0cd0316ec55ea024d8bd
parent21af69e7531536ff1564df6f960c51667bffb7ef
egl/surfaceless: Fix segfault in eglSwapBuffers

Since commit 63c5d5c6c46c8472ee7a8241a0f80f13d79cb8cd, the surfaceless
platform has allowed creation of pbuffer surfaces. But the vtable entry
for eglSwapBuffers has remained NULL.

Discovered by running a little pbuffer test.

Cc: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/egl/drivers/dri2/platform_surfaceless.c