[cogl/wip/public-atlas-apis: 2/13] Fix _COGL_RETURN_VAL_IF_FAIL return type warning



commit 0805f3348f6e0bbbc1e8f11d3f38765ca78b1831
Author: Robert Bragg <robert linux intel com>
Date:   Sun Feb 9 03:23:15 2014 +0000

    Fix _COGL_RETURN_VAL_IF_FAIL return type warning
    
    This fixes a warning by making the _COGL_RETURN_VAL_IF_FAIL check in
    _cogl_offscreen_gl_allocate return FALSE not NULL, since the api returns
    a CoglBool not a pointer.

 cogl/driver/gl/cogl-framebuffer-gl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/cogl/driver/gl/cogl-framebuffer-gl.c b/cogl/driver/gl/cogl-framebuffer-gl.c
index ce2b5b5..56c04a9 100644
--- a/cogl/driver/gl/cogl-framebuffer-gl.c
+++ b/cogl/driver/gl/cogl-framebuffer-gl.c
@@ -736,7 +736,7 @@ _cogl_offscreen_gl_allocate (CoglOffscreen *offscreen,
 
   _COGL_RETURN_VAL_IF_FAIL (offscreen->texture_level <
                             _cogl_texture_get_n_levels (offscreen->texture),
-                            NULL);
+                            FALSE);
 
   _cogl_texture_get_level_size (offscreen->texture,
                                 offscreen->texture_level,


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