Commit 56d4de0f authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

wined3d: Don't clamp viewport coordinates.

parent 576c5308
......@@ -3163,7 +3163,7 @@ static HRESULT process_vertices_strided(const struct wined3d_device *device, DWO
/* Get the viewport */
wined3d_device_get_viewports(device, NULL, &vp);
TRACE("viewport x %.8e, y %.8e, width %.8e, height %.8e, min_z %.8e, max_z %.8e.\n",
TRACE("viewport x %.8e, y %.8e, width %.8e, height %.8e, min_z %.8e, max_z %.8e.\n",
vp.x, vp.y, vp.width, vp.height, vp.min_z, vp.max_z);
multiply_matrix(&mat,&view_mat,&world_mat);
......
......@@ -4002,22 +4002,10 @@ static void get_viewports(struct wined3d_context *context, const struct wined3d_
unsigned int width, height, i;
for (i = 0; i < viewport_count; ++i)
{
viewports[i] = state->viewports[i];
if (target)
{
if (viewports[i].width > target->width)
viewports[i].width = target->width;
if (viewports[i].height > target->height)
viewports[i].height = target->height;
}
}
/*
* Note: GL requires lower left, DirectX supplies upper left. This is
* reversed when using offscreen rendering.
*/
/* Note: GL uses a lower left origin while DirectX uses upper left. This
* is reversed when using offscreen rendering. */
if (context->render_offscreen)
return;
......
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