Cleaned up some evas_gl code and added surface cap feature.
authorSung Park <sungwoo@gmail.com>
Wed, 2 May 2012 08:31:15 +0000 (08:31 +0000)
committerSung Park <sungwoo@gmail.com>
Wed, 2 May 2012 08:31:15 +0000 (08:31 +0000)
commitd74e82f6d83af88e1f2d609bb80d843dbd5f147d
tree890f7522e24c0a56bb23dc2319b4254d59fc3b8f
parent9f4da8f68c6004c866725fecbf4dd27496591263
Cleaned up some evas_gl code and added surface cap feature.

Previously, evas_gl_surface_create() didn't actually do
the render buffer attach to the the FBO. It was performed when
the make_current was called for the first time.  The issue
was that even though the surface was successfully created with
the given configuration, there was a possibility of make_current
failing with the error message "FBO not complete" because of
the surface configuration.

So, I've added a piece of code that checks the FBO
capabilities beforehand to set up a available surface configurations
so that it doesn't have to fail during make_current for unsupported
surface format.

Also, I've changed the surface config in a way that once the
user calls evas_gl_surface_create(), evas gl sets the config
parameter with configuration that evas_gl is actually using.

SVN revision: 70617
legacy/evas/src/lib/Evas_GL.h
legacy/evas/src/lib/canvas/evas_gl.c
legacy/evas/src/modules/engines/gl_x11/evas_engine.c