Commit 8890ece5 authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

wined3d: Do not crash when trying to draw to buffer render target.

parent ccb06c6b
......@@ -4840,6 +4840,13 @@ void draw_primitive(struct wined3d_device *device, const struct wined3d_state *s
if (!(rtv = fb->render_targets[0]))
rtv = fb->depth_stencil;
if (rtv && rtv->resource->type == WINED3D_RTYPE_BUFFER)
{
FIXME("Buffer render targets not implemented.\n");
return;
}
if (rtv)
context = context_acquire(device, wined3d_texture_from_resource(rtv->resource), rtv->sub_resource_idx);
else
......
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