[cogl/wip/rib/introspection: 3/14] Fix _COGL_RETURN_VAL_IF_FAIL return type warning
- From: Robert Bragg <rbragg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/wip/rib/introspection: 3/14] Fix _COGL_RETURN_VAL_IF_FAIL return type warning
- Date: Thu, 20 Feb 2014 17:59:47 +0000 (UTC)
commit c932517180ce55423ae3de67b26495a090f31628
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]