d2d1: Check the context error state on entering d2d_device_context_DrawGlyphRun().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
4c940b0d3e
commit
cc4b28a99d
|
@ -1355,6 +1355,9 @@ static void STDMETHODCALLTYPE d2d_device_context_DrawGlyphRun(ID2D1DeviceContext
|
||||||
TRACE("iface %p, baseline_origin %s, glyph_run %p, brush %p, measuring_mode %#x.\n",
|
TRACE("iface %p, baseline_origin %s, glyph_run %p, brush %p, measuring_mode %#x.\n",
|
||||||
iface, debug_d2d_point_2f(&baseline_origin), glyph_run, brush, measuring_mode);
|
iface, debug_d2d_point_2f(&baseline_origin), glyph_run, brush, measuring_mode);
|
||||||
|
|
||||||
|
if (FAILED(context->error.code))
|
||||||
|
return;
|
||||||
|
|
||||||
rendering_params = context->text_rendering_params ? context->text_rendering_params
|
rendering_params = context->text_rendering_params ? context->text_rendering_params
|
||||||
: context->default_text_rendering_params;
|
: context->default_text_rendering_params;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue