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:
e3be513
)
dri2: check if context is valid before flushing the pipe
author
Cooper Yuan
<cooperyuan@gmail.com>
Tue, 16 Aug 2011 12:37:13 +0000
(20:37 +0800)
committer
Cooper Yuan
<cooperyuan@gmail.com>
Tue, 16 Aug 2011 12:37:13 +0000
(20:37 +0800)
src/gallium/state_trackers/dri/drm/dri2.c
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/dri/drm/dri2.c
b/src/gallium/state_trackers/dri/drm/dri2.c
index
908a735
..
53638da
100644
(file)
--- a/
src/gallium/state_trackers/dri/drm/dri2.c
+++ b/
src/gallium/state_trackers/dri/drm/dri2.c
@@
-49,7
+49,8
@@
dri2_flush_drawable(__DRIdrawable *draw)
struct dri_drawable *drawable = dri_drawable(draw);
struct dri_context *ctx = dri_get_current(draw->driScreenPriv);
- ctx->st->flush(ctx->st, 0, NULL);
+ if (ctx)
+ ctx->st->flush(ctx->st, 0, NULL);
}
static void