[PATCH 1/8] wined3d: Remove useless glClearxxx calls.

Henri Verbeet hverbeet at gmail.com
Wed Apr 10 03:17:42 CDT 2013


On 10 April 2013 01:35, Matteo Bruni <mbruni at codeweavers.com> wrote:
> -    /* Clear the screen */
> -    gl_info->gl_ops.gl.p_glClearColor(1.0f, 0.0f, 0.0f, 0.0f);
> -    checkGLcall("glClearColor");
> -    gl_info->gl_ops.gl.p_glClearIndex(0);
> -    gl_info->gl_ops.gl.p_glClearDepth(1);
> -    gl_info->gl_ops.gl.p_glClearStencil(0xffff);
> -
> -    checkGLcall("glClear");
>
And actually potentially harmful, if the new context is created after
an existing one already did drawing on the same drawable. (Although
that's fairly unlikely, especially with "AlwaysOffscreen" enabled.)



More information about the wine-devel mailing list