<div dir="ltr">try after eglMakeCurrent, it should provide correct value.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 3, 2015 at 12:21 PM, Andreas Müller <span dir="ltr"><<a href="mailto:schnitzeltony@googlemail.com" target="_blank">schnitzeltony@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Thu, May 7, 2015 at 8:24 AM, Andreas Müller<br>
<<a href="mailto:schnitzeltony@googlemail.com">schnitzeltony@googlemail.com</a>> wrote:<br>
> On Wed, May 6, 2015 at 6:38 PM, Prabhu S <<a href="mailto:prabhusundar@gmail.com">prabhusundar@gmail.com</a>> wrote:<br>
>> There is no option to report to as ES 2.0. ES 2.0 is subset of ES3.0. Can<br>
>> you able to patch kwin?<br>
>><br>
> I will try that - see how far I get.<br>
><br>
</div></div>OK I would like to come back to this: Shouldn't eglCreateContext with<br>
EGL_CONTEXT_CLIENT_VERSION = 2 create an Open GL ES 2.0 compatible<br>
context?<br>
<br>
On my machine this seems broken somehow. Steps to verify this:<br>
<br>
Build mesa-demos and start es2tri. It stops with<br>
<br>
| x_window: Assertion `val == 2` failed.<br>
<br>
The code is creating a context for 2.0 and checks if the desired<br>
version was accepted:<br>
<br>
  static const EGLint ctx_attribs[] = {<br>
   EGL_CONTEXT_CLIENT_VERSION, 2,<br>
   EGL_NONE<br>
  };<br>
<...><br>
  ctx = eglCreateContext(egl_dpy, config, EGL_NO_CONTEXT, ctx_attribs );<br>
<...><br>
<br>
   EGLint val;<br>
   eglQueryContext(egl_dpy, ctx, EGL_CONTEXT_CLIENT_VERSION, &val);<br>
   assert(val == 2);<br>
<br>
For me this seems to turn into a serious issue - suggestions?<br>
<span class="HOEnZb"><font color="#888888"><br>
Andreas<br>
</font></span></blockquote></div><br></div>