diff options
author | Eric Anholt <eric@anholt.net> | 2013-12-18 12:18:20 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2014-02-14 18:28:56 -0800 |
commit | 0373b3f4f7c7aec633468b37f9236a2734dbcc74 (patch) | |
tree | bc4df39ca936d30ac1cf51dda0ce7e1f272aaab8 /glamor/glamor_glyphs.c | |
parent | f34dc7fa96457ea6a0703493d74e63cca357712e (diff) |
glamor: Convert to using libepoxy.
Libepoxy hides all the GL versus GLES2 dispatch handling for us, with
higher performance.
v2: Squash in the later patch to drop the later of two repeated
glamor_get_dispatch()es instead (caught by keithp)
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'glamor/glamor_glyphs.c')
-rw-r--r-- | glamor/glamor_glyphs.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/glamor/glamor_glyphs.c b/glamor/glamor_glyphs.c index 3586b33da..c118f34ac 100644 --- a/glamor/glamor_glyphs.c +++ b/glamor/glamor_glyphs.c @@ -1274,14 +1274,12 @@ glamor_buffer_glyph(glamor_screen_private *glamor_priv, if (buffer->source == NULL) buffer->source = source; if (glyphs_dst_mode == GLYPHS_DST_MODE_VIA_MASK_CACHE) { - glamor_gl_dispatch *dispatch; - /* mode 1 means we are using global mask cache, * thus we have to composite from the cache picture * to the cache picture, we need a flush here to make * sure latter we get the corret glyphs data.*/ - dispatch = glamor_get_dispatch(glamor_priv); - dispatch->glFlush(); + glamor_get_dispatch(glamor_priv); + glFlush(); glamor_put_dispatch(glamor_priv); } } |