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)
This commit is contained in:
Neil Roberts 2012-08-14 17:53:02 +01:00 committed by Robert Bragg
parent 601abeadca
commit 51d94769be
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -425,7 +425,7 @@ cogl_framebuffer_get_modelview_matrix (CoglFramebuffer *framebuffer,
*/
void
cogl_framebuffer_set_modelview_matrix (CoglFramebuffer *framebuffer,
CoglMatrix *matrix);
const CoglMatrix *matrix);
/**
* cogl_framebuffer_perspective:
@ -539,7 +539,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: