msaa: print GError message on onscreen alloc failure

If we fail to allocate the onscreen framebuffer when first requesting 4x
msaa then we now print the GError message.

Reviewed-by: Neil Roberts <neil@linux.intel.com>
This commit is contained in:
Robert Bragg 2012-04-10 19:20:21 +01:00
parent 836d54445d
commit 995f4cd019

View File

@ -47,9 +47,9 @@ main (int argc, char **argv)
if (!cogl_framebuffer_allocate (fb, &error))
{
g_error_free (error);
fprintf (stderr, "Failed to allocate 4x msaa offscreen framebuffer, "
"disabling msaa for onscreen rendering\n");
"disabling msaa for onscreen rendering: %s\n", error->message);
g_error_free (error);
cogl_framebuffer_set_samples_per_pixel (fb, 0);
error = NULL;