Fix an intermittent lockup with ATI's driver, I expect the problem is

trying to clear the display before it's visible. Also correct the
clear alpha value.
This commit is contained in:
Oliver Stieber 2005-11-14 12:28:59 +00:00 committed by Alexandre Julliard
parent 9630d155c2
commit a8d9a2a4ac
1 changed files with 1 additions and 2 deletions

View File

@ -1446,13 +1446,12 @@ HRESULT WINAPI IWineD3DDeviceImpl_CreateAdditionalSwapChain(IWineD3DDevice* ifac
TRACE("Setting up the screen\n"); TRACE("Setting up the screen\n");
/* Clear the screen */ /* Clear the screen */
glClearColor(0.0, 0.0, 0.0, 0.0); glClearColor(1.0, 0.0, 0.0, 0.0);
checkGLcall("glClearColor"); checkGLcall("glClearColor");
glClearIndex(0); glClearIndex(0);
glClearDepth(1); glClearDepth(1);
glClearStencil(0xffff); glClearStencil(0xffff);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_ACCUM_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
checkGLcall("glClear"); checkGLcall("glClear");
glColor3f(1.0, 1.0, 1.0); glColor3f(1.0, 1.0, 1.0);