Module: Mesa
Branch: master
Commit: 5a702fa4e5c4aff130088365763513135cd0188b
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=5a702fa4e5c4aff130088365763513135cd0188b

Author: Michel Zou <[email protected]>
Date:   Tue Nov 24 18:59:11 2020 +0100

wgl: fix maybe-uninitialized warning

Reviewed-by: Jose Fonseca <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7713>

---

 src/gallium/frontends/wgl/stw_st.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/frontends/wgl/stw_st.c 
b/src/gallium/frontends/wgl/stw_st.c
index 39de83ba419..7c5ff3d1498 100644
--- a/src/gallium/frontends/wgl/stw_st.c
+++ b/src/gallium/frontends/wgl/stw_st.c
@@ -280,7 +280,7 @@ stw_st_framebuffer_validate(struct st_context_iface *stctx,
                                : stwfb->textures;
 
    for (i = 0; i < count; i++) {
-      struct pipe_resource *texture;
+      struct pipe_resource *texture = NULL;
 
       if (stwfb->needs_fake_front) {
          if (statts[i] == ST_ATTACHMENT_FRONT_LEFT)

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to