diff --git a/hw/xbox/nv2a/pgraph/gl/draw.c b/hw/xbox/nv2a/pgraph/gl/draw.c index af87c41e28..d9a0d4f91b 100644 --- a/hw/xbox/nv2a/pgraph/gl/draw.c +++ b/hw/xbox/nv2a/pgraph/gl/draw.c @@ -332,8 +332,8 @@ void pgraph_gl_draw_begin(NV2AState *d) /* Surface clip */ /* FIXME: Consider moving to PSH w/ window clip */ - unsigned int xmin = pg->surface_shape.clip_x - pg->surface_binding_dim.clip_x, - ymin = pg->surface_shape.clip_y - pg->surface_binding_dim.clip_y; + unsigned int xmin = pg->surface_shape.clip_x, + ymin = pg->surface_shape.clip_y; unsigned int xmax = xmin + pg->surface_shape.clip_width - 1, ymax = ymin + pg->surface_shape.clip_height - 1; diff --git a/hw/xbox/nv2a/pgraph/vk/draw.c b/hw/xbox/nv2a/pgraph/vk/draw.c index f34b6aa094..8327f9c529 100644 --- a/hw/xbox/nv2a/pgraph/vk/draw.c +++ b/hw/xbox/nv2a/pgraph/vk/draw.c @@ -1472,10 +1472,8 @@ static void begin_draw(PGRAPHState *pg) /* Surface clip */ /* FIXME: Consider moving to PSH w/ window clip */ - unsigned int xmin = pg->surface_shape.clip_x - - pg->surface_binding_dim.clip_x, - ymin = pg->surface_shape.clip_y - - pg->surface_binding_dim.clip_y; + unsigned int xmin = pg->surface_shape.clip_x, + ymin = pg->surface_shape.clip_y; unsigned int xmax = xmin + pg->surface_shape.clip_width - 1, ymax = ymin + pg->surface_shape.clip_height - 1;