Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Mesa
mesa
Commits
f272117d
Commit
f272117d
authored
Aug 16, 2011
by
Cooper Yuan
Browse files
dri2: check if context is valid before flushing the pipe
parent
e3be5131
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/gallium/state_trackers/dri/drm/dri2.c
View file @
f272117d
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment