cogl-shader: Store the CoglShaderType in CoglShader
authorRobert Bragg <robert@linux.intel.com>
Fri, 23 Jul 2010 16:44:53 +0000 (17:44 +0100)
committerRobert Bragg <robert@linux.intel.com>
Tue, 3 Aug 2010 11:41:34 +0000 (12:41 +0100)
commit8021d3e2ebeced1921a973b325275c3e000655a2
tree97cb5feda85e3ef6224afb9df5a6f8c2bd9ff2d9
parent467c33a3e37904cb29ea596caff6c70ae5eb503a
cogl-shader: Store the CoglShaderType in CoglShader

Instead of having to query GL and translate the GL enum into a
CoglShaderType each time cogl_shader_get_type is called we now keep
track of the type in CoglShader.
clutter/cogl/cogl/driver/gl/cogl-shader-private.h
clutter/cogl/cogl/driver/gl/cogl-shader.c
clutter/cogl/cogl/driver/gles/cogl-shader.c