[cairo] [PATCH 1/6] gl: Add entry for UniformMatrix4fv in the gl dispatch table

alexandros.frantzis at linaro.org alexandros.frantzis at linaro.org
Tue Feb 8 03:10:10 PST 2011


From: Alexandros Frantzis <alexandros.frantzis at linaro.org>

---
 src/cairo-gl-dispatch-private.h |    1 +
 src/cairo-gl-private.h          |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/cairo-gl-dispatch-private.h b/src/cairo-gl-dispatch-private.h
index f3245ed..bd444a5 100644
--- a/src/cairo-gl-dispatch-private.h
+++ b/src/cairo-gl-dispatch-private.h
@@ -83,6 +83,7 @@ cairo_private cairo_gl_dispatch_entry_t dispatch_shaders_entries[] = {
     DISPATCH_ENTRY_ARB (Uniform3f),
     DISPATCH_ENTRY_ARB (Uniform4f),
     DISPATCH_ENTRY_ARB (UniformMatrix3fv),
+    DISPATCH_ENTRY_ARB (UniformMatrix4fv),
     DISPATCH_ENTRY_ARB (Uniform1i),
     DISPATCH_ENTRY_LAST
 };
diff --git a/src/cairo-gl-private.h b/src/cairo-gl-private.h
index 6cea8c0..04322f2 100644
--- a/src/cairo-gl-private.h
+++ b/src/cairo-gl-private.h
@@ -210,6 +210,8 @@ typedef struct _cairo_gl_dispatch {
 			 GLfloat w);
     void (*UniformMatrix3fv) (GLint location, GLsizei count,
 				GLboolean transpose, const GLfloat *value);
+    void (*UniformMatrix4fv) (GLint location, GLsizei count,
+			      GLboolean transpose, const GLfloat *value);
     void (*Uniform1i) (GLint location, GLint x);
 
     /* Framebuffer objects */
-- 
1.7.2.3



More information about the cairo mailing list