Hi all,<div><br></div><div>I'm trying to get decorations in QtWayland for EGL apps. The problem that I'm facing is that I cannot find a good way to do so.</div><div>One solution could be to use an FBO, let the client draw in that and then draw the content of the FBO into the surface whith its nifty decoration. This would work but what happens if the client in its rendering code calls glBindFramebuffer(0)? It will start drawing directly to the surface and it will screw up badly.</div>
<div>Using an EGL pixel buffer would solve the issue, as I can call eglMakeCurrent with that, but copying its content to the surface is slow.</div><div>A faster thing would probably be wl_egl_pixmap but it's gone.</div>
<div><br></div><div>The ideal solution would be to have an EGL extension that lets call eglMakeCurrent with a rect that defines the boundaries of the drawable surface.</div><div>There's <span style="white-space:pre-wrap">NV_post_sub_buffer (</span><span style="white-space:pre-wrap"><a href="http://www.khronos.org/registry/egl/extensions/NV/EGL_NV_post_sub_buffer.txt" target="_blank">http://www.khronos.org/registry/egl/extensions/NV/EGL_NV_post_sub_buffer.txt</a>) but wl_egl_windows don't seem to support it.</span></div>
<div><span style="white-space:pre-wrap"><br></span></div><div><span style="white-space:pre-wrap">So I'm stuck. Does anyone have an idea?</span></div><span class="HOEnZb"><font color="#888888"><div><span style="white-space:pre-wrap"><br>
</span></div><div><span style="white-space:pre-wrap">Giulio</span></div><div><span style="white-space:pre-wrap"><br></span></div></font></span>