[PATCH] WineD3D: remove some needless initializations=0A=

Stefan Doesinger stefan at codeweavers.com
Mon Dec 15 15:47:07 CST 2008


=0A=
They're not needed, they are handled by the state management anyway=0A=
---=0A=
 dlls/wined3d/context.c |    6 ------=0A=
 1 files changed, 0 insertions(+), 6 deletions(-)=0A=
=0A=
diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c=0A=
index a34f877..3b5000c 100644=0A=
--- a/dlls/wined3d/context.c=0A=
+++ b/dlls/wined3d/context.c=0A=
@@ -839,12 +839,6 @@ WineD3DContext *CreateContext(IWineD3DDeviceImpl =
*This, IWineD3DSurfaceImpl *tar=0A=
 =0A=
     checkGLcall("glClear");=0A=
 =0A=
-    glColor3f(1.0, 1.0, 1.0);=0A=
-    checkGLcall("glColor3f");=0A=
-=0A=
-    glEnable(GL_LIGHTING);=0A=
-    checkGLcall("glEnable");=0A=
-=0A=
     glLightModeli(GL_LIGHT_MODEL_LOCAL_VIEWER, GL_TRUE);=0A=
     checkGLcall("glLightModeli(GL_LIGHT_MODEL_LOCAL_VIEWER, GL_TRUE);");=0A=
 =0A=
-- =0A=
1.5.6.4=0A=
=0A=

------=_NextPart_000_0035_01C95EEE.EF9FBB60--




More information about the wine-patches mailing list