summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-03-11 17:34:02 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-03-11 17:36:14 +0000
commit4c11ac451a00e552899429253652a6423829573b (patch)
tree68d6687c267810302a83bd7b3ab7dcf6f776dd1a /vcl
parent6d97df009dc9cf733781643b00911e5324e1a6f5 (diff)
flush surface for all backends
Change-Id: Ifa6f7f9a816096bfe9f44baca17b34e54b83a5c6
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/generic/gdi/cairotextrender.cxx1
-rw-r--r--vcl/unx/generic/gdi/openglx11cairotextrender.cxx1
2 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/generic/gdi/cairotextrender.cxx b/vcl/unx/generic/gdi/cairotextrender.cxx
index 0445771f9c33..b107c954d7af 100644
--- a/vcl/unx/generic/gdi/cairotextrender.cxx
+++ b/vcl/unx/generic/gdi/cairotextrender.cxx
@@ -338,6 +338,7 @@ void CairoTextRender::DrawServerFontLayout( const ServerFontLayout& rLayout )
aI = aNext;
}
+ cairo_surface_flush(cairo_get_target(cr));
drawSurface(cr);
cairo_destroy(cr);
}
diff --git a/vcl/unx/generic/gdi/openglx11cairotextrender.cxx b/vcl/unx/generic/gdi/openglx11cairotextrender.cxx
index 8edeba85d744..dbb6ecfbc065 100644
--- a/vcl/unx/generic/gdi/openglx11cairotextrender.cxx
+++ b/vcl/unx/generic/gdi/openglx11cairotextrender.cxx
@@ -65,7 +65,6 @@ void OpenGLX11CairoTextRender::drawSurface(cairo_t* cr)
cairo_surface_t* pSurface = cairo_get_target(cr);
int nWidth = cairo_image_surface_get_width( pSurface );
int nHeight = cairo_image_surface_get_height( pSurface );
- cairo_surface_flush( pSurface );
unsigned char *pSrc = cairo_image_surface_get_data( pSurface );
// XXX: lfrb: GLES 2.0 doesn't support GL_UNSIGNED_INT_8_8_8_8_REV