diff options
author | Robert Bragg <robert@linux.intel.com> | 2014-02-09 03:23:15 +0000 |
---|---|---|
committer | Robert Bragg <robert@linux.intel.com> | 2014-02-20 18:15:11 +0000 |
commit | 0805f3348f6e0bbbc1e8f11d3f38765ca78b1831 (patch) | |
tree | 0f9a5f5463fd3d2272aa674b39445ab9d500a35f | |
parent | bd6d2b1e559e4b1940ade80e37d39cb940de73f8 (diff) | |
download | cogl-0805f3348f6e0bbbc1e8f11d3f38765ca78b1831.tar.gz |
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.
-rw-r--r-- | 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 ce2b5b57..56c04a96 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, |