Commit 4460006f authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

d2d1: Only draw if the geometry has any faces in d2d_d3d_render_target_FillGeometry().

parent 20ad2e39
...@@ -713,6 +713,8 @@ static void STDMETHODCALLTYPE d2d_d3d_render_target_FillGeometry(ID2D1RenderTarg ...@@ -713,6 +713,8 @@ static void STDMETHODCALLTYPE d2d_d3d_render_target_FillGeometry(ID2D1RenderTarg
return; return;
} }
if (geometry_impl->face_count)
{
buffer_desc.ByteWidth = geometry_impl->face_count * sizeof(*geometry_impl->faces); buffer_desc.ByteWidth = geometry_impl->face_count * sizeof(*geometry_impl->faces);
buffer_desc.BindFlags = D3D10_BIND_INDEX_BUFFER; buffer_desc.BindFlags = D3D10_BIND_INDEX_BUFFER;
buffer_data.pSysMem = geometry_impl->faces; buffer_data.pSysMem = geometry_impl->faces;
...@@ -739,6 +741,7 @@ static void STDMETHODCALLTYPE d2d_d3d_render_target_FillGeometry(ID2D1RenderTarg ...@@ -739,6 +741,7 @@ static void STDMETHODCALLTYPE d2d_d3d_render_target_FillGeometry(ID2D1RenderTarg
ID3D10Buffer_Release(vb); ID3D10Buffer_Release(vb);
ID3D10Buffer_Release(ib); ID3D10Buffer_Release(ib);
}
if (geometry_impl->bezier_count) if (geometry_impl->bezier_count)
{ {
......
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