]> git.cworth.org Git - apitrace/commit - retrace/glws_egl_xlib.cpp
Recreate egl surface when glViewport for watching framebuffer in qapitrace's surface...
authorHuang Dongsung <luxtella@company100.net>
Sat, 23 Jun 2012 07:03:26 +0000 (16:03 +0900)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Sun, 5 Aug 2012 09:21:52 +0000 (10:21 +0100)
commit67e00fdd5bdf596c9468d29ad99e7eba646cd02a
tree20879e02f704cbef42976cf8dfc5da96a63c3547
parent0a02e6f34097b3387c7e5cbecff6d3e8e12e2135
Recreate egl surface when glViewport for watching framebuffer in qapitrace's surface tab.

It is quirk of mesa egl 1.4 with Nvidia-dri. It is ok with intel-dri.

After resizing XWindow, mesa egl does not know new size of the surface.
If you call eglQuerySurface(currentDisplay, currentSurface, EGL_WIDTH, width),
width is the width at the time to create the egl surface, not current width.
However, glx can know what the size of window well.

Signed-off-by: José Fonseca <jose.r.fonseca@gmail.com>
retrace/glws_egl_xlib.cpp