[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] pygext: Couldn't find matching GLX visual
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] pygext: Couldn't find matching GLX visual
- From: Sami Hangaslammi <sami.hangaslammi@xxxxxxxxx>
- Date: Mon, 19 Sep 2005 00:49:24 +0300
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Sun, 18 Sep 2005 17:49:39 -0400
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=jxVOv+RPMOvN0M+BjkKzjwaxDTI+DcST0pmAi3wLdgiHT7hC2reZMWc3YZrg9BAQuC8m70bpAJ9OwgYQoQloLUSih2X+dalcqws8qQKhjJI9CeGD6v6DVSKO3suoXrNN0EfFmETEJp6GsxxK27kgco97h6DN4f/miI8sMp23sVU=
- In-reply-to: <432D88A6.7010104@web.de>
- References: <432D88A6.7010104@web.de>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Hello Chris,
On 9/18/05, Christopher Arndt <chris.arndt@xxxxxx> wrote:
> I wanted to try out the pygext library and the pylonoid game based on it, but I
> always get the following error when I try to run any pygext based programm, e.g:
>
> Traceback (most recent call last):
> File "tutorial1.py", line 27, in ?
> init((800,600))
> File "/usr/local/lib/python2.4/site-packages/pygext/gl/base.py", line 28, in init
> _init_display(resolution[0], resolution[1], fullscreen=fullscreen)
> File "/usr/local/lib/python2.4/site-packages/pygext/gl/base.py", line 51, in
> _init_display
> pygame.display.set_mode(resolution, flags, 32)
> pygame.error: Couldn't find matching GLX visual
Hmm, I'm not very familiar with X, but the problem might be that the
current version of pygext tries to always get a 32bit display surface
and that might not be possible on your system. You can try editing the
file pygext/gl/base.py line 51 and remove the parameter "32" from the
pygame.display.set_mode call.
--
Sami Hangaslammi