summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorAxel Davy <[email protected]>2015-08-16 12:58:41 +0200
committerAxel Davy <[email protected]>2015-08-21 22:21:48 +0200
commitd48cab9fa6b75db054e3a53819b465611923e9bc (patch)
treee1085ba80ac0c53a8c262371e17829212d676bf4 /src/gallium
parent2f02d5e814904d7a5c041d6869751731712e8195 (diff)
st/nine: Silent warning in NineCubeTexture9_ctor
The compiler was complaining the value may be uninitialised when it is used (which is wrong). Initialize to NULL to silent the warning.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/state_trackers/nine/cubetexture9.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/nine/cubetexture9.c b/src/gallium/state_trackers/nine/cubetexture9.c
index a2bb9b9512f..abba2637946 100644
--- a/src/gallium/state_trackers/nine/cubetexture9.c
+++ b/src/gallium/state_trackers/nine/cubetexture9.c
@@ -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;