OSDN Git Service

st/nine: Silent warning in NineCubeTexture9_ctor
authorAxel Davy <axel.davy@ens.fr>
Sun, 16 Aug 2015 10:58:41 +0000 (12:58 +0200)
committerAxel Davy <axel.davy@ens.fr>
Fri, 21 Aug 2015 20:21:48 +0000 (22:21 +0200)
The compiler was complaining the value may be uninitialised
when it is used (which is wrong). Initialize to NULL to silent
the warning.

src/gallium/state_trackers/nine/cubetexture9.c

index a2bb9b9..abba263 100644 (file)
@@ -43,7 +43,7 @@ NineCubeTexture9_ctor( struct NineCubeTexture9 *This,
     struct pipe_screen *screen = pParams->device->screen;
     enum pipe_format pf;
     unsigned i, l, f, offset, face_size = 0;
-    unsigned *level_offsets;
+    unsigned *level_offsets = NULL;
     D3DSURFACE_DESC sfdesc;
     void *p;
     HRESULT hr;