mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
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> (cherry picked from commit 9f4945e3daa693e1aa56fe4c1ce37fcc545f8558)
This commit is contained in:
parent
59ffa9abdd
commit
06c3a7bc70
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user