WGL: get rid of wglCopyContext

Roderick Colenbrander thunderbird2k at gmail.com
Sun Nov 15 03:39:59 CST 2009


Ignore this patch fow now. By accident I found out that mesa recently
fixed some glXCopyContext bugs, so lets keep the code for now. Soon
the implementation can be simplified when I submit some otherr new
code.

Roderick

On Sat, Nov 14, 2009 at 10:33 PM, Roderick Colenbrander
<thunderbird2k at gmail.com> wrote:
> Hi,
>
> I'm in the process of rewriting the context creation code in the wgl
> code. Right now context creation is delayed until a context is made
> current because of context sharing issues. Because of OpenGL 3.0
> support we can't delay creation because we can't catch errors during
> context creation (opengl3 introduces a bunch of error codes). I want
> to have as much context creation code in wglCreateContext where
> possible.
>
> To make the code cleaner I want to get rid of wglCopyContext. Neither
> Lionel or I have EVER seen a program which uses this function. Further
> due to this all driver implementations of this call are broken or even
> segfault. In case of mesa/dri the call is even limited to indirect
> rendering only. Since the glXCopyContext function is so broken and
> because it makes the wgl code nicer, I want to get rid of this code
> once and for all.
>
> Regards,
> Roderick Colenbrander
>



More information about the wine-patches mailing list