[PATCH 1/3] wined3d: Do not crash when trying to draw to buffer render target.
Józef Kucia
jkucia at codeweavers.com
Fri Nov 23 07:41:14 CST 2018
Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
dlls/wined3d/context.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index 4cd46c66c677..4096673d3166 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -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
--
2.18.1
More information about the wine-devel
mailing list