Commit 82155cbc authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

wined3d: Implement clears for 3D render target views.

parent cd92d5d0
......@@ -4418,13 +4418,13 @@ HRESULT CDECL wined3d_device_clear_rendertarget_view(struct wined3d_device *devi
return WINED3D_OK;
resource = view->resource;
if (resource->type != WINED3D_RTYPE_TEXTURE_1D && resource->type != WINED3D_RTYPE_TEXTURE_2D)
if (resource->type == WINED3D_RTYPE_BUFFER)
{
FIXME("Not implemented for %s resources.\n", debug_d3dresourcetype(resource->type));
return WINED3DERR_INVALIDCALL;
}
if (view->layer_count > 1)
if (view->layer_count != max(1, resource->depth >> view->desc.u.texture.level_idx))
{
FIXME("Layered clears not implemented.\n");
return WINED3DERR_INVALIDCALL;
......
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