Re: opengl32 wglSwapLayerBuffers

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

 



Lionel Ulmer <lionel.ulmer@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 &amp;lang=en">uh_ja@gmx.net>
>  Lionel Ulmer &amp;lang=en">lionel.ulmer@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




[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux