Module: wine Branch: master Commit: 3d226df3b90702507da2529b4f58deff06d3d2a4 URL: http://source.winehq.org/git/wine.git/?a=commit;h=3d226df3b90702507da2529b4f...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Tue Oct 29 10:28:03 2013 +0100
wined3d: Avoid initializing some more variables.
---
dlls/wined3d/state.c | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c index 15a0b5a..d31cadf 100644 --- a/dlls/wined3d/state.c +++ b/dlls/wined3d/state.c @@ -821,16 +821,16 @@ static void state_stencil(struct wined3d_context *context, const struct wined3d_ const struct wined3d_gl_info *gl_info = context->gl_info; DWORD onesided_enable; DWORD twosided_enable; - GLint func = GL_ALWAYS; - GLint func_ccw = GL_ALWAYS; - GLint ref = 0; - GLuint mask = 0; - GLint stencilFail = GL_KEEP; - GLint depthFail = GL_KEEP; - GLint stencilPass = GL_KEEP; - GLint stencilFail_ccw = GL_KEEP; - GLint depthFail_ccw = GL_KEEP; - GLint stencilPass_ccw = GL_KEEP; + GLint func; + GLint func_ccw; + GLint ref; + GLuint mask; + GLint stencilFail; + GLint stencilFail_ccw; + GLint stencilPass; + GLint stencilPass_ccw; + GLint depthFail; + GLint depthFail_ccw;
/* No stencil test without a stencil buffer. */ if (!state->fb->depth_stencil)