diff options
author | Brian Paul <[email protected]> | 2013-03-25 10:23:27 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-03-25 12:24:11 -0600 |
commit | 35aefe922660ed6e8fbad082757ae759acd711dd (patch) | |
tree | 2521a3cd340a7ba2774b57b89a3205eb8449cda5 /src/mesa/swrast/s_blit.c | |
parent | 980f1cf8a165ad25fbb6c0424e6166a4210c3196 (diff) |
swrast: init vars to silence warnings
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/mesa/swrast/s_blit.c')
-rw-r--r-- | src/mesa/swrast/s_blit.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/swrast/s_blit.c b/src/mesa/swrast/s_blit.c index 82fa43f1c73..051354dc8c7 100644 --- a/src/mesa/swrast/s_blit.c +++ b/src/mesa/swrast/s_blit.c @@ -110,8 +110,8 @@ blit_nearest(struct gl_context *ctx, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield buffer) { - struct gl_renderbuffer *readRb, *drawRb; - struct gl_renderbuffer_attachment *readAtt, *drawAtt; + struct gl_renderbuffer *readRb, *drawRb = NULL; + struct gl_renderbuffer_attachment *readAtt = NULL, *drawAtt = NULL; struct gl_framebuffer *readFb = ctx->ReadBuffer; struct gl_framebuffer *drawFb = ctx->DrawBuffer; GLuint numDrawBuffers = 0; @@ -135,12 +135,12 @@ blit_nearest(struct gl_context *ctx, UNPACK_Z_FLOAT, UNPACK_Z_INT, UNPACK_S, - } mode; + } mode = DIRECT; GLubyte *srcMap, *dstMap; GLint srcRowStride, dstRowStride; GLint dstRow; - GLint pixelSize; + GLint pixelSize = 0; GLvoid *srcBuffer, *dstBuffer; GLint prevY = -1; |