[cogl/cogl-1.10] framebuffer: Take const pointers for the matrix setters



commit d9575562ee7658633bbc765cd49099f8586866cc
Author: Neil Roberts <neil linux intel com>
Date:   Tue Aug 14 17:53:02 2012 +0100

    framebuffer: Take const pointers for the matrix setters
    
    cogl_framebuffer_set_{projection,modelview}_matrix don't need to read
    from the matrix argument so they should probably take a const pointer.
    
    Reviewed-by: Robert Bragg <robert linux intel com>
    
    (cherry picked from commit 710d6af053aca97935b54f9ff68858ef51f4482b)

 cogl/cogl-framebuffer.c |    4 ++--
 cogl/cogl-framebuffer.h |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/cogl/cogl-framebuffer.c b/cogl/cogl-framebuffer.c
index bcec224..d716a4a 100644
--- a/cogl/cogl-framebuffer.c
+++ b/cogl/cogl-framebuffer.c
@@ -2649,7 +2649,7 @@ cogl_framebuffer_get_modelview_matrix (CoglFramebuffer *framebuffer,
 
 void
 cogl_framebuffer_set_modelview_matrix (CoglFramebuffer *framebuffer,
-                                       CoglMatrix *matrix)
+                                       const CoglMatrix *matrix)
 {
   CoglMatrixStack *modelview_stack =
     _cogl_framebuffer_get_modelview_stack (framebuffer);
@@ -2674,7 +2674,7 @@ cogl_framebuffer_get_projection_matrix (CoglFramebuffer *framebuffer,
 
 void
 cogl_framebuffer_set_projection_matrix (CoglFramebuffer *framebuffer,
-                                        CoglMatrix *matrix)
+                                        const CoglMatrix *matrix)
 {
   CoglMatrixStack *projection_stack =
     _cogl_framebuffer_get_projection_stack (framebuffer);
diff --git a/cogl/cogl-framebuffer.h b/cogl/cogl-framebuffer.h
index 07886db..84a1814 100644
--- a/cogl/cogl-framebuffer.h
+++ b/cogl/cogl-framebuffer.h
@@ -387,7 +387,7 @@ cogl_framebuffer_get_modelview_matrix (CoglFramebuffer *framebuffer,
  */
 void
 cogl_framebuffer_set_modelview_matrix (CoglFramebuffer *framebuffer,
-                                       CoglMatrix *matrix);
+                                       const CoglMatrix *matrix);
 
 /**
  * cogl_framebuffer_perspective:
@@ -501,7 +501,7 @@ cogl_framebuffer_get_projection_matrix (CoglFramebuffer *framebuffer,
  */
 void
 cogl_framebuffer_set_projection_matrix (CoglFramebuffer *framebuffer,
-                                        CoglMatrix *matrix);
+                                        const CoglMatrix *matrix);
 
 /**
  * cogl_framebuffer_push_scissor_clip:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]