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:
parent
9630d155c2
commit
a8d9a2a4ac
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue