mirror of https://github.com/xemu-project/xemu.git
nv2a: Fix surface clip to scissor origin
This commit is contained in:
parent
b455d58227
commit
860bccb722
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue