Kaydet (Commit) 4c11ac45 authored tarafından Caolán McNamara's avatar Caolán McNamara

flush surface for all backends

Change-Id: Ifa6f7f9a816096bfe9f44baca17b34e54b83a5c6
üst 6d97df00
......@@ -338,6 +338,7 @@ void CairoTextRender::DrawServerFontLayout( const ServerFontLayout& rLayout )
aI = aNext;
}
cairo_surface_flush(cairo_get_target(cr));
drawSurface(cr);
cairo_destroy(cr);
}
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment