mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 01:50:42 -05:00
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:
parent
836d54445d
commit
995f4cd019
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user