~jammy-zhou/glproxy/glproxy

Viewing all changes in revision 29.

  • Committer: Jammy Zhou
  • Author(s): Alexandros Frantzis
  • Date: 2011-05-04 02:46:21 UTC
  • mfrom: (28.1.1 fix-dummy-surface)
  • Revision ID: jammy.zhou@linaro.org-20110504024621-p1vev0i3zbbve151
Ensure that we always get a valid dummy surface to use for configuration.

Using eglGetConfig and eglCreateWindowSurface does not guarantee that
the returned EGLConfig supports ES2, nor that it is suitable for window
surfaces, nor that it is compatible with the used X window visual. We can
use eglChooseConfig with explicit attributes and eglCreatePbufferSurface
to make the process both simpler and more robust.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: