Matteo Bruni : wined3d: Remove useless glClearxxx calls.

Alexandre Julliard julliard at winehq.org
Wed Apr 10 14:16:15 CDT 2013


Module: wine
Branch: master
Commit: 46fa0448d9f668611383e722f5016669edcdfbdd
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=46fa0448d9f668611383e722f5016669edcdfbdd

Author: Matteo Bruni <mbruni at codeweavers.com>
Date:   Wed Apr 10 01:35:39 2013 +0200

wined3d: Remove useless glClearxxx calls.

---

 dlls/wined3d/context.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index cf65225..90038ca 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -1464,14 +1464,6 @@ struct wined3d_context *context_create(struct wined3d_swapchain *swapchain,
     gl_info->gl_ops.gl.p_glGetIntegerv(GL_AUX_BUFFERS, &ret->aux_buffers);
 
     TRACE("Setting up the screen\n");
-    /* 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");
 
     gl_info->gl_ops.gl.p_glLightModeli(GL_LIGHT_MODEL_LOCAL_VIEWER, GL_TRUE);
     checkGLcall("glLightModeli(GL_LIGHT_MODEL_LOCAL_VIEWER, GL_TRUE);");




More information about the wine-cvs mailing list