From a8d9a2a4ac0b7b07f2aa8498476880587583f98f Mon Sep 17 00:00:00 2001 From: Oliver Stieber Date: Mon, 14 Nov 2005 12:28:59 +0000 Subject: [PATCH] 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. --- dlls/wined3d/device.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 38db2e84a07..25ccb042cb6 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -1446,13 +1446,12 @@ HRESULT WINAPI IWineD3DDeviceImpl_CreateAdditionalSwapChain(IWineD3DDevice* ifac TRACE("Setting up the screen\n"); /* Clear the screen */ - glClearColor(0.0, 0.0, 0.0, 0.0); + glClearColor(1.0, 0.0, 0.0, 0.0); checkGLcall("glClearColor"); glClearIndex(0); glClearDepth(1); glClearStencil(0xffff); - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_ACCUM_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); checkGLcall("glClear"); glColor3f(1.0, 1.0, 1.0);