[cogl/wip/cogl-1.12: 7/9] Fix a warning on test-gles2-context
- From: Tomeu Vizoso <tomeuv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/wip/cogl-1.12: 7/9] Fix a warning on test-gles2-context
- Date: Tue, 19 Jun 2012 11:11:40 +0000 (UTC)
commit 89a435d798fd1f0b1d18004f5b0dbbf87e11f325
Author: Neil Roberts <neil linux intel com>
Date: Fri May 18 11:07:30 2012 +0100
Fix a warning on test-gles2-context
test-gles2-context was giving a warning because printf was being used
without including stdio.h. This changes it to use g_print and to first
check for g_test_verbose().
Reviewed-by: Robert Bragg <robert linux intel com>
tests/conform/test-gles2-context.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/tests/conform/test-gles2-context.c b/tests/conform/test-gles2-context.c
index 6d27706..96fe653 100644
--- a/tests/conform/test-gles2-context.c
+++ b/tests/conform/test-gles2-context.c
@@ -261,8 +261,9 @@ create_gles2_framebuffer (const CoglGLES2Vtable *gles2,
GL_TEXTURE_2D, texture_handle, 0);
status = gles2->glCheckFramebufferStatus (GL_FRAMEBUFFER);
- printf ("status for gles2 framebuffer = 0x%x %s\n",
- status, status == GL_FRAMEBUFFER_COMPLETE ? "(complete)" : "(?)");
+ if (cogl_test_verbose ())
+ g_print ("status for gles2 framebuffer = 0x%x %s\n",
+ status, status == GL_FRAMEBUFFER_COMPLETE ? "(complete)" : "(?)");
gles2->glBindFramebuffer (GL_FRAMEBUFFER, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]