[Mesa-dev] [PATCH] egl: reset 'ViewportInitialized' when unbinding current context

Emil Velikov emil.l.velikov at gmail.com
Tue Aug 23 16:51:23 UTC 2016


On 23 August 2016 at 17:36, Dongwon Kim <dongwon.kim at intel.com> wrote:
> I read that part in egl specification as well but I wasn't sure
> if this statement covers the case when the context is unbound via
> eglMakeCurrent call with NULL context then it is made current again.
> The problem I saw was when the context is made current again especially
> with a new surface with different dimension, there's no way the context
> updates its viewport accordingly.
>
In that case one should adjust the viewport manually as mentioned in the spec ?

Also note that the src/mesa/ code is _not_ EGL but EGL/GLX agnostic,
so one should we
quite careful that changes don't break in either one of the two ;-)

-Emil


More information about the mesa-dev mailing list