mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 17:50:11 +01:00
define CLIP_TILE as in sp_surface.c
This commit is contained in:
parent
0862df2154
commit
fa44b74f4e
1 changed files with 4 additions and 0 deletions
|
|
@ -72,6 +72,10 @@ const int xmesa_kernel1[16] = {
|
|||
|
||||
#define CLIP_TILE \
|
||||
do { \
|
||||
if (x >= ps->width) \
|
||||
return; \
|
||||
if (y >= ps->height) \
|
||||
return; \
|
||||
if (x + w > ps->width) \
|
||||
w = ps->width - x; \
|
||||
if (y + h > ps->height) \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue