Evas GL common: Create OpenGL ES 3.x contexts by default
authorJean-Philippe Andre <jp.andre@samsung.com>
Thu, 5 Mar 2015 10:21:24 +0000 (19:21 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Thu, 5 Mar 2015 11:59:53 +0000 (20:59 +0900)
commit03ab2e27c87213ee0a19240787e2ff3e847b87ae
treea77d02c9b1ac06ca8d096b225d0ff413433bd106
parent611741e65d3a83544313f2267ad076d0e4318ee5
Evas GL common: Create OpenGL ES 3.x contexts by default

Automatically fallback to OpenGL ES 2.0 if OpenGL ES 3 is not supported.
This is a first step in trying to support GLES 3 for Evas GL.

This commit is also a wild test to see whether using GLES 3 contexts
by default will break anything. The theory says that GLES 3 is
backwards compatible with GLESv2.

So, if anything GL breaks for you... scream loudly!
But before reporting any bugs, please set the env variable:
- export EVAS_GL_DISABLE_GLES3=1

This does not add any requirement for GLESv3 support.
src/modules/evas/engines/gl_common/evas_gl_common.h
src/modules/evas/engines/gl_common/evas_gl_context.c
src/modules/evas/engines/gl_x11/evas_engine.c
src/modules/evas/engines/gl_x11/evas_engine.h
src/modules/evas/engines/gl_x11/evas_x_main.c