microsoft / angle

ANGLE: OpenGL ES to DirectX translation
Other
615 stars 166 forks source link

ES3 support #91

Closed bradleybauer closed 8 years ago

bradleybauer commented 8 years ago

Hi I'm trying to use ES3 in the 'XAML App for OpenGL ES (Universal Apps)' template in visual studio 2015. It throws an exception after it fails to create an eglcontext when the EGL_CONTEXT_CLIENT_VERSION is set to 3 and the gl3 header is included. I've tested with the non xaml template 'App for OpenGL ES (Universal Apps)' and es3 works fine. Please Help

austinkinross commented 8 years ago

Hi, by default the templates set the 'EGL_ANGLE_DISPLAY_ALLOW_RENDER_TO_BACK_BUFFER' attribute to EGL_TRUE, which doesn't support ES3. Could you try setting this attribute to EGL_FALSE in your app? (you'll need to do this in several places)

I'm not sure why the non-XAML template worked for you but XAML didn't- neither work for me when I switch them to ES3 without setting EGL_ANGLE_DISPLAY_ALLOW_RENDER_TO_BACK_BUFFER to EGL_FALSE.

Hope this helps!

bradleybauer commented 8 years ago

This worked! thanks.

austinkinross commented 8 years ago

Great!