~darkxst/ubuntu/raring/xorg-server/lp1073724

« back to all changes in this revision

Viewing changes to hw/xquartz/GL/capabilities.c

  • Committer: Bazaar Package Importer
  • Author(s): Bryce Harrington
  • Date: 2010-06-07 14:50:49 UTC
  • mfrom: (0.9.4 upstream)
  • mto: This revision was merged to the branch mainline in revision 187.
  • Revision ID: james.westby@ubuntu.com-20100607145049-eys326hqtq5mjqxt
Tags: upstream-1.8.1.901
ImportĀ upstreamĀ versionĀ 1.8.1.901

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 
32
32
#include "capabilities.h"
33
33
 
 
34
#define Cursor X_Cursor
 
35
#include "os.h"
 
36
#undef Cursor
 
37
 
34
38
static void handleBufferModes(struct glCapabilitiesConfig *c, GLint bufferModes) {
35
39
    if(bufferModes & kCGLStereoscopicBit) {
36
40
        c->stereo = true;
521
525
 
522
526
            conf = malloc(sizeof(*conf));
523
527
            if(NULL == conf) {
524
 
            perror("malloc");
525
 
            abort();
 
528
                FatalError("Unable to allocate memory for OpenGL capabilities\n");
526
529
            }
527
530
 
528
531
            /* Copy the struct. */