Hi,
seems COGLhandleARB was not declared in GLES. I used GLuint as that's
what seems to be used in OpenGL ES 2.0.
Thanks
--
Johan Bilien
<[EMAIL PROTECTED]>
diff --git a/clutter/cogl/gles/cogl-defines.h b/clutter/cogl/gles/cogl-defines.h
index cc11f51..925418f 100644
--- a/clutter/cogl/gles/cogl-defines.h
+++ b/clutter/cogl/gles/cogl-defines.h
@@ -440,6 +440,7 @@ G_BEGIN_DECLS
typedef GLenum COGLenum;
typedef GLint COGLint;
typedef GLuint COGLuint;
+typedef GLuint COGLhandleARB;
/* extras */
diff --git a/clutter/cogl/gles/cogl.c b/clutter/cogl/gles/cogl.c
index 3d325ff..ba1ee3e 100644
--- a/clutter/cogl/gles/cogl.c
+++ b/clutter/cogl/gles/cogl.c
@@ -268,7 +268,7 @@ cogl_rectangle_internal (ClutterFixed x,
ClutterFixed width,
ClutterFixed height)
{
- GLfixed rect_verts[4] = {
+ GLfixed rect_verts[] = {
x, y,
x + width, y,
x, y + height,
@@ -645,61 +645,61 @@ cogl_fog_set (const ClutterColor *fog_color,
glFogx (GL_FOG_END, (GLfixed) z_far);
}
-COGLint cogl_create_program (void)
+COGLhandleARB cogl_create_program (void)
{
return 0;
}
-COGLint cogl_create_shader (COGLenum shaderType)
+COGLhandleARB cogl_create_shader (COGLenum shaderType)
{
return 0;
}
-void cogl_shader_source (COGLint shader,
- const gchar *source)
+void cogl_shader_source (COGLhandleARB shader,
+ const gchar *source)
{
}
-void cogl_shader_compile (COGLint shader_handle)
+void cogl_shader_compile (COGLhandleARB shader_handle)
{
}
-void cogl_program_attach_shader (COGLint program_handle,
- COGLint shader_handle)
+void cogl_program_attach_shader (COGLhandleARB program_handle,
+ COGLhandleARB shader_handle)
{
}
-void cogl_program_link (COGLint program_handle)
+void cogl_program_link (COGLhandleARB program_handle)
{
}
-void cogl_program_use (COGLint program_handle)
+void cogl_program_use (COGLhandleARB program_handle)
{
}
-COGLint cogl_program_get_uniform_location (COGLint program_handle,
- const gchar *uniform_name)
+COGLint cogl_program_get_uniform_location (COGLhandleARB program_handle,
+ const gchar *uniform_name)
{
return 0;
}
-void cogl_program_destroy (COGLint handle)
+void cogl_program_destroy (COGLhandleARB handle)
{
}
-void cogl_shader_destroy (COGLint handle)
+void cogl_shader_destroy (COGLhandleARB handle)
{
}
-void cogl_shader_get_info_log (COGLint handle,
- guint size,
- gchar *buffer)
+void cogl_shader_get_info_log (COGLhandleARB handle,
+ guint size,
+ gchar *buffer)
{
}
-void cogl_shader_get_parameteriv (COGLint handle,
- COGLenum pname,
- COGLint *dest)
+void cogl_shader_get_parameteriv (COGLhandleARB handle,
+ COGLenum pname,
+ COGLint *dest)
{
}