Re: [GtkGLExt] Use of GdkGLPixmap
- From: Jean Bréfort <jean brefort normalesup org>
- To: Roberto Huelga <rhuelga gmail com>
- Cc: gtkglext-list gnome org
- Subject: Re: [GtkGLExt] Use of GdkGLPixmap
- Date: Fri, 20 Jan 2006 12:17:13 +0100
Le vendredi 20 janvier 2006 �2:00 +0100, Roberto Huelga a �it :
>
> On 1/20/06, Jean Br�rt <jean brefort normalesup org> wrote:
> Le vendredi 20 janvier 2006 �1:09 +0100, Roberto Huelga a
> �it :
> > This sample doesn't work on win32, but it should on
> GNU/linux,
> > what's your system, version, and gtk version?
>
> (gentoo linux for amd64, gtk+- 2.8.10)
>
> I found the problem. Seems that the depth is 16, not 24.
> Thanks for all.
>
> You are right I should use gdk_gl_config_get_depth, instead of hard
> code it as 24.
>
>
> (And in my program, I used a GdkGLConfig with
> GDK_GL_MODE_DOUBLE mode,
> which does not work for pixmaps (why should it work?)).
>
> With the GDK_GL_MODE_DOUBLE activate I don't get any error, but I only
> receive trash from the pixmap.
I was wrong. My problem came from a missing glEndList call (I do not
understand why this one is necessary, since I never create a GLList).
Nevertheless, things now work, thanks.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]