[PATCH 1/8] wined3d: Remove useless glClearxxx calls.
Matteo Bruni
matteo.mystral at gmail.com
Wed Apr 10 10:56:45 CDT 2013
2013/4/10 Henri Verbeet <hverbeet at gmail.com>:
> 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.)
>
>
Notice that there isn't actually any glClear() call there. Interesting
relics from the dawn of wined3d. :)
More information about the wine-devel
mailing list