wined3d: Limit surface_cpu_blt_colour_fill() to dimensions of render target view.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
0530f33cc1
commit
8a2583c7d9
|
@ -2970,8 +2970,8 @@ static void surface_cpu_blt_colour_fill(struct wined3d_rendertarget_view *view,
|
||||||
|
|
||||||
c = wined3d_format_convert_from_float(view->format, colour);
|
c = wined3d_format_convert_from_float(view->format, colour);
|
||||||
bpp = view->format->byte_count;
|
bpp = view->format->byte_count;
|
||||||
w = box->right - box->left;
|
w = min(box->right, view->width) - box->left;
|
||||||
h = box->bottom - box->top;
|
h = min(box->bottom, view->height) - box->top;
|
||||||
|
|
||||||
texture = texture_from_resource(view->resource);
|
texture = texture_from_resource(view->resource);
|
||||||
map_binding = texture->resource.map_binding;
|
map_binding = texture->resource.map_binding;
|
||||||
|
|
Loading…
Reference in New Issue