projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f02d5e
)
st/nine: Silent warning in NineCubeTexture9_ctor
author
Axel Davy
<axel.davy@ens.fr>
Sun, 16 Aug 2015 10:58:41 +0000
(12:58 +0200)
committer
Axel 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
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/nine/cubetexture9.c
b/src/gallium/state_trackers/nine/cubetexture9.c
index a2bb9b9512f4392dcb0fbab518f7a5e01260c73d..abba2637946f2befdedb18793954255333e2bf3c 100644
(file)
--- 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;