[Mesa-dev] [PATCH] glx/dri2: fix use of uninitialized variable "api"

Vadim Girlin vadimgirlin at gmail.com
Tue Jan 10 21:32:40 PST 2012


Signed-off-by: Vadim Girlin <vadimgirlin at gmail.com>
---

Fixes unigine heaven startup problem for me.

 src/glx/dri2_glx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c
index 10b6f52..b4efa40 100644
--- a/src/glx/dri2_glx.c
+++ b/src/glx/dri2_glx.c
@@ -240,7 +240,7 @@ dri2_create_context_attribs(struct glx_screen *base,
    uint32_t minor_ver = 1;
    uint32_t major_ver = 2;
    uint32_t flags = 0;
-   unsigned api;
+   unsigned api = __DRI_API_OPENGL;
    uint32_t ctx_attribs[2 * 4];
    unsigned num_ctx_attribs = 0;
 
-- 
1.7.7.5



More information about the mesa-dev mailing list