projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b07a22
)
svga: init fill variable to avoid compiler warning
author
Brian Paul
<brianp@vmware.com>
Fri, 1 Mar 2019 20:55:30 +0000
(13:55 -0700)
committer
Brian Paul
<brianp@vmware.com>
Mon, 4 Mar 2019 18:48:47 +0000
(11:48 -0700)
MinGW release builds warns about use of a possbily uninitialized
variable here.
Reviewed-by: Neha Bhende <bhenden@vmware.com>
Reviewed-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
src/gallium/drivers/svga/svga_pipe_rasterizer.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/svga/svga_pipe_rasterizer.c
b/src/gallium/drivers/svga/svga_pipe_rasterizer.c
index 1dbf5b6debb59eb07e9946fe75038fcfea404b73..7d5936fa1ece2aedf1c75ef7748922bb4dfe625d 100644
(file)
--- a/
src/gallium/drivers/svga/svga_pipe_rasterizer.c
+++ b/
src/gallium/drivers/svga/svga_pipe_rasterizer.c
@@
-257,7
+257,7
@@
svga_create_rasterizer_state(struct pipe_context *pipe,
{
int fill_front = templ->fill_front;
int fill_back = templ->fill_back;
- int fill;
+ int fill
= PIPE_POLYGON_MODE_FILL
;
boolean offset_front = util_get_offset(templ, fill_front);
boolean offset_back = util_get_offset(templ, fill_back);
boolean offset = FALSE;