~noskcaj/ubuntu/trusty/cogl/1.16.2

« back to all changes in this revision

Viewing changes to examples/cogl-msaa.c

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha, Jeremy Bicha, Rico Tzschichholz
  • Date: 2013-02-26 16:43:25 UTC
  • mfrom: (1.1.10)
  • Revision ID: package-import@ubuntu.com-20130226164325-t4z9rylpa20v0p6q
Tags: 1.13.4-0ubuntu1
[ Jeremy Bicha ]
* New upstream release
  - soname bump
* debian/control.in:
  - Bump minimum glib to 2.32
  - Drop obsolete breaks/replaces
  - Bump libclutter-1.0-dev breaks for soname transition
* debian/libcogl-dev.install:
  - Add some missing files

[ Rico Tzschichholz ]
* debian/control.in:
  - Build-depend on libxrandr-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
    CoglContext *ctx;
11
11
    CoglOnscreen *onscreen;
12
12
    CoglFramebuffer *fb;
13
 
    GError *error = NULL;
 
13
    CoglError *error = NULL;
14
14
    CoglVertexP2C4 triangle_vertices[] = {
15
15
        {0, 0.7, 0xff, 0x00, 0x00, 0x80},
16
16
        {-0.7, -0.7, 0x00, 0xff, 0x00, 0xff},
49
49
      {
50
50
        fprintf (stderr, "Failed to allocate 4x msaa offscreen framebuffer, "
51
51
                 "disabling msaa for onscreen rendering: %s\n", error->message);
52
 
        g_error_free (error);
 
52
        cogl_error_free (error);
53
53
        cogl_framebuffer_set_samples_per_pixel (fb, 0);
54
54
 
55
55
        error = NULL;
70
70
    cogl_framebuffer_set_samples_per_pixel (offscreen_fb, 4);
71
71
    if (!cogl_framebuffer_allocate (offscreen_fb, &error))
72
72
      {
73
 
        g_error_free (error);
 
73
        cogl_error_free (error);
74
74
        error = NULL;
75
75
        fprintf (stderr, "Failed to allocate 4x msaa offscreen framebuffer, "
76
76
                 "disabling msaa for offscreen rendering");