summaryrefslogtreecommitdiff
path: root/cogl/cogl-framebuffer.c
diff options
context:
space:
mode:
authorNeil Roberts <neil@linux.intel.com>2012-08-14 17:53:02 +0100
committerRobert Bragg <robert@linux.intel.com>2012-08-15 17:29:16 +0100
commit51d94769be197ef880708b13f3c35262201d3537 (patch)
tree3d8eaccd8143869541aa2eec3114af85b8899de0 /cogl/cogl-framebuffer.c
parent601abeadcaa5507878d746b0ab94fc16b6228a7c (diff)
downloadcogl-51d94769be197ef880708b13f3c35262201d3537.tar.gz
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)
Diffstat (limited to 'cogl/cogl-framebuffer.c')
-rw-r--r--cogl/cogl-framebuffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cogl/cogl-framebuffer.c b/cogl/cogl-framebuffer.c
index 7acf1edb..83b1b3a9 100644
--- a/cogl/cogl-framebuffer.c
+++ b/cogl/cogl-framebuffer.c
@@ -2808,7 +2808,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);
@@ -2833,7 +2833,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);