X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmesa%2Fmain%2Ftexgetimage.c;h=715bc249be12182954d90ba108bdc42493844d3c;hb=3561d93668234225699734f3cc010defa0fda360;hp=b0ced1eac0f87c02f0574b5465fdd3a189618890;hpb=e198a64e3532af9b30d7c3fac4d092ecea7d2e41;p=mesa.git diff --git a/src/mesa/main/texgetimage.c b/src/mesa/main/texgetimage.c index b0ced1eac0f..715bc249be1 100644 --- a/src/mesa/main/texgetimage.c +++ b/src/mesa/main/texgetimage.c @@ -1773,7 +1773,7 @@ _mesa_GetCompressedTextureSubImage(GLuint texture, GLint level, { GET_CURRENT_CONTEXT(ctx); static const char *caller = "glGetCompressedTextureImage"; - struct gl_texture_object *texObj; + struct gl_texture_object *texObj = NULL; texObj = _mesa_lookup_texture_err(ctx, texture, caller); if (!texObj) {