discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OpenGL sample code on Linux


From: Thomas Gamper
Subject: Re: OpenGL sample code on Linux
Date: Mon, 19 Jan 2009 21:25:20 +0100
User-agent: Thunderbird 2.0.0.19 (X11/20090105)

Hi!

for (i=numvis-1, best = -1; i>=0; i--)
 {
   if (vinfo[i].depth == 24) best = i;
   else if (vinfo[i].depth>24 && best<0) best = i;
 }

Try to replace 24 with 32. Since an OpenGL Pixelformat without alpha channel basically makes no sense.

TOM

Fred Kiefer schrieb:
I hacked bestContext() in back/Source/x11/context.c to return False and
with that both examples work again. This looks like the problem has to
do with the visual, drawable or depth selection. On my machine
glXChooseFBConfig() finds 18 usable configurations, but the code sticks
to the first one.

Fred





reply via email to

[Prev in Thread] Current Thread [Next in Thread]