mutter/cogl/driver/gles
Damien Lespiau dbef77cd8b cogl: new textures sould have GL_TEXTURE_MIN_FILTER set to GL_LINEAR
The only way the user has to set the mipmap filters is through the
material/layer API. This API defaults to GL_LINEAR/GL_LINEAR for the max
and min filters. With the main use case of cogl being 2D interfaces, it
makes sense do default to GL_LINEAR for the min filter.

When creating new textures, we did not set any filter on them, using
OpenGL defaults': GL_NEAREST_MIPMAP_LINEAR for the min filter and
GL_LINEAR for the max filter. This will make the driver allocate memory
for the mipmap tree, memory that will not be used in the nominal case
(as the material API defaults to GL_LINEAR).

This patch tries to ensure that the min filter is set to GL_LINEAR
before any glTexImage*() call is done on the texture by setting the
filter when generating new OpenGL handles.
2010-02-08 17:14:49 +00:00
..
cogl-context-driver.c cogl: Make it easier to add checks for GL extensions 2009-11-17 15:11:26 +00:00
cogl-context-driver.h cogl: Use APIENTRY for GL function pointer declarations 2009-11-18 19:24:09 +00:00
cogl-defines.h.in cogl: Remove the CGL_* defines 2010-01-12 17:10:15 +00:00
cogl-feature-functions.h cogl: Make it easier to add checks for GL extensions 2009-11-17 15:11:26 +00:00
cogl-fixed-fragment-shader.glsl Intial Re-layout of the Cogl source code and introduction of a Cogl Winsys 2009-10-16 18:58:50 +01:00
cogl-fixed-vertex-shader.glsl Intial Re-layout of the Cogl source code and introduction of a Cogl Winsys 2009-10-16 18:58:50 +01:00
cogl-gles2-wrapper.c cogl: Remove the CGL_* defines 2010-01-12 17:10:15 +00:00
cogl-gles2-wrapper.h cogl: Remove the CGL_* defines 2010-01-12 17:10:15 +00:00
cogl-program.c Intial Re-layout of the Cogl source code and introduction of a Cogl Winsys 2009-10-16 18:58:50 +01:00
cogl-program.h Intial Re-layout of the Cogl source code and introduction of a Cogl Winsys 2009-10-16 18:58:50 +01:00
cogl-shader-private.h Intial Re-layout of the Cogl source code and introduction of a Cogl Winsys 2009-10-16 18:58:50 +01:00
cogl-shader.c Intial Re-layout of the Cogl source code and introduction of a Cogl Winsys 2009-10-16 18:58:50 +01:00
cogl-texture-driver.c cogl: new textures sould have GL_TEXTURE_MIN_FILTER set to GL_LINEAR 2010-02-08 17:14:49 +00:00
cogl.c cogl: Add the missing terminators for the arrays of feature functions 2009-11-18 13:23:10 +00:00
Makefile.am build: Add cogl-feature-functions.h to the dist 2009-11-18 14:43:46 +00:00
stringify.sh Intial Re-layout of the Cogl source code and introduction of a Cogl Winsys 2009-10-16 18:58:50 +01:00