OpenGL Visual Management

lawson_whitney at juno.com lawson_whitney at juno.com
Wed Mar 28 19:15:40 CST 2001


On Mon, 26 Mar 2001, Gavriel State wrote:

> This patch fixes several issues with the way OpenGL manages visuals:
>
>  - It always uses a double-buffered visual if one is available, even when
>    not running Wine in --desktop mode.  Previously, we just hoped that the
>    default visual was double buffered, which is isn't in some DRI GL drivers.
>
>  - It ensures that all colormaps created use the double-buffered visual if
>    it exists.  This prevents problems where DRI GL implementations fail
>    to work unless the colormap visual matches the window visual matches the
>    glX visual.
>
>  - It gets around similar visual issue with the default GL context created for
>    apps that don't create their own contexts before trying to use GL functions.
>
> Note that we are not able to support the wgl ChoosePixelFormat/DescribePixelFormat
> APIs properly.  Some of the infrastructure for this exists in graphics/x11drv/opengl.c
> so that it can be done when the time comes.  This patch explicitly removes the wgl
> code that tries to match the OpenGL visual to a requested pixel format, because
> that won't work until we can dynamically remap HWNDs to new X11 Windows with
> a new visual.
>
> -Gav
>
Something is not right, I think.  Ordinary apps (Dmitry's About.exe,
say) look as if they were using a vga16 server - unless the pointer is
over the desktop:  then the entire X display is black and white.
Without a desktop with managed moving the pointer over the app's window
radically changes the palette for the whole screen, but not to black and
white.  With neither managed nor desktop, the pointer has no effect on
the palette.

No doubt I am not well set up for DGA:

grep -i dga config.cache
ac_cv_header_X11_extensions_xf86dga_h=${ac_cv_header_X11_extensions_xf86dga_h=yes}
ac_cv_lib_Xxf86dga_XDGAQueryExtension=${ac_cv_lib_Xxf86dga_XDGAQueryExtension=no}
ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes}

but I don't see why DGA support should disturb things so.

I haven't really looked into it much yet...maybe you will see right off
what you or I have done wrong?

Regards,

Lawson
---cut here


________________________________________________________________
GET INTERNET ACCESS FROM JUNO!
Juno offers FREE or PREMIUM Internet access for less!
Join Juno today!  For your FREE software, visit:
http://dl.www.juno.com/get/tagj.




More information about the wine-devel mailing list