OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11913e9
)
draw llvm: Move dereference of pointer after NULL check.
author
Vinson Lee
<vlee@vmware.com>
Tue, 20 Apr 2010 07:00:52 +0000
(
00:00
-0700)
committer
Vinson Lee
<vlee@vmware.com>
Tue, 20 Apr 2010 07:00:52 +0000
(
00:00
-0700)
src/gallium/auxiliary/draw/draw_context.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/draw/draw_context.c
b/src/gallium/auxiliary/draw/draw_context.c
index
0d8f880
..
d490d33
100644
(file)
--- a/
src/gallium/auxiliary/draw/draw_context.c
+++ b/
src/gallium/auxiliary/draw/draw_context.c
@@
-103,12
+103,14
@@
boolean draw_init(struct draw_context *draw)
void draw_destroy( struct draw_context *draw )
{
- struct pipe_context *pipe
= draw->pipe
;
+ struct pipe_context *pipe;
int i, j;
if (!draw)
return;
+ pipe = draw->pipe;
+
/* free any rasterizer CSOs that we may have created.
*/
for (i = 0; i < 2; i++) {