realbasic-games
[Top] [All Lists]

Re: AGL error 10006??

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: AGL error 10006??
From: Asher Dunn <asher at fireyesoftware dot com>
Date: Sun, 15 Aug 2004 15:53:48 -0400
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <F14B3FFF-EED8-11D8-A2A0-000A95DB6C90 at fireyesoftware dot com> <4D0563A2-EEF4-11D8-A411-0003933EA538 at chaoticbox dot com>

On Aug 15, 2004, at 3:50 PM, Frank Condello wrote:

On 15-Aug-04, at 12:34 PM, Asher Dunn wrote:

When I try to run the classic compile of one of my OpenGL apps, I get AGL error 10006 ("invalid display") after calling aglCreateContext.

What does this error code mean?

The display probably can't handle some parameters in your pixelformat. Make sure you're not using any OS X specific attributes, or try different (more modest) values and build it up from there.

pixFormat.long(0) = AGL_RGBA
if doubleBuffer then pixFormat.long(4) = AGL_DOUBLEBUFFER else pixFormat.long(4) = 0
pixFormat.long(8) = AGL_DEPTH_SIZE
pixFormat.long(12) = 32
pixFormat.long(16) = AGL_AUX_BUFFERS
pixFormat.long(20) = 0
pixFormat.long(24) = AGL_NONE

Anything look wrong with this?

Asher Dunn
--------------------------------------------------------
President and Head Developer of Fireye Software <http://www.fireyesoftware.com/> Make PDFs from your RB app <http://www.fireyesoftware.com/code/pdfclasses/>
AIM: fireye2005

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>