diff --git a/clutter/cogl/cogl/driver/gles/cogl-shader-private.h b/clutter/cogl/cogl/driver/gles/cogl-shader-private.h index cf00c4842..878ab5552 100644 --- a/clutter/cogl/cogl/driver/gles/cogl-shader-private.h +++ b/clutter/cogl/cogl/driver/gles/cogl-shader-private.h @@ -32,7 +32,7 @@ struct _CoglShader { CoglHandleObject _parent; GLuint gl_handle; - GLenum type; + CoglShaderType type; }; CoglShader *_cogl_shader_pointer_from_handle (CoglHandle handle); diff --git a/clutter/cogl/cogl/driver/gles/cogl-shader.c b/clutter/cogl/cogl/driver/gles/cogl-shader.c index 5b2214e3d..a86104d07 100644 --- a/clutter/cogl/cogl/driver/gles/cogl-shader.c +++ b/clutter/cogl/cogl/driver/gles/cogl-shader.c @@ -69,6 +69,7 @@ cogl_create_shader (CoglShaderType type) shader = g_slice_new (CoglShader); shader->gl_handle = glCreateShader (gl_type); + shader->type = type; return _cogl_shader_handle_new (shader); }