opengl32 wglSwapLayerBuffers
Jesse Allen
uh_ja at gmx.net
Thu Jun 6 16:45:35 CDT 2002
Lionel Ulmer <lionel.ulmer at free.fr> wrote :
> Well, the attached patch does exactly the same, it's just a little more
> verbose about it :-)
>
> Anyway, we do not support OVERLAYS and UNDERLAYS in OpenGL right now (I do
> not even know how we could do *that* with GLX) so your code should be about
> right.
I figured that as most related functions were stubs.
>
> Moreover, according to MSDN, War3 should never call wglSwapLayerBuffers as
> we do not have the 'PFD_SWAP_LAYER_BUFFERS' bit set in our
> PIXELFORMATDESCRIPTOR (oh well, that is Windows programs for ya :-) ).
>
I do think it's odd as well since a more basic function can handle it.
> Could you, out of curiosity, add me a log showing what value War3 uses in
> the fuPlanes field ?
Yes,
After it loads it shows:
fixme:opengl:wglSwapLayerBuffers (0000087c, 00000001)
..repeated until exiting the game.
So it's basically switching the main layer over and over again?
I don't think it uses other layers. Because I think there would be a graphics corruption if it did. None have been observed so far.
Heh, since I'm a beta tester, I can ask blizz why they even use this function, and see if they respond.
>
> Changelog:
> Jesse Allen &lang=en">uh_ja at gmx.net>
> Lionel Ulmer &lang=en">lionel.ulmer at free.fr>
> - add implementation of wglSwapLayerBuffers
>
> Lionel
>
> PS: War3 running in Wine using OpenGL !!! Man, this is nice :-)
>
And it's the best running game I've seen running under wine. =)
> --
> Lionel Ulmer - http://www.bbrox.org/
Jesse
___________________________________
NOCC, http://nocc.sourceforge.net
More information about the wine-patches
mailing list