|
Lines 856-861
Link Here
|
| 856 |
|
856 |
|
| 857 |
if (timeToNextRedraw == 0) |
857 |
if (timeToNextRedraw == 0) |
| 858 |
{ |
858 |
{ |
|
|
859 |
static int init_i815 = 0; |
| 860 |
|
| 859 |
gettimeofday (&tv, 0); |
861 |
gettimeofday (&tv, 0); |
| 860 |
|
862 |
|
| 861 |
timeDiff = TIMEVALDIFF (&tv, &s->lastRedraw); |
863 |
timeDiff = TIMEVALDIFF (&tv, &s->lastRedraw); |
|
Lines 889-899
Link Here
|
| 889 |
{ |
891 |
{ |
| 890 |
s->damageMask = 0; |
892 |
s->damageMask = 0; |
| 891 |
|
893 |
|
|
|
894 |
if (! init_i815) { |
| 895 |
/* Workaround for i815 scissor bug xorg #6222 */ |
| 896 |
glEnable (GL_SCISSOR_TEST); |
| 897 |
glScissor (1, 1, s->width-1, s->height-1); |
| 898 |
} |
| 892 |
(*s->paintScreen) (s, |
899 |
(*s->paintScreen) (s, |
| 893 |
&defaultScreenPaintAttrib, |
900 |
&defaultScreenPaintAttrib, |
| 894 |
&s->region, |
901 |
&s->region, |
| 895 |
PAINT_SCREEN_REGION_MASK | |
902 |
PAINT_SCREEN_REGION_MASK | |
| 896 |
PAINT_SCREEN_FULL_MASK); |
903 |
PAINT_SCREEN_FULL_MASK); |
|
|
904 |
if (! init_i815) { |
| 905 |
glDisable (GL_SCISSOR_TEST); |
| 906 |
init_i815 = 1; |
| 907 |
} |
| 897 |
|
908 |
|
| 898 |
glXSwapBuffers (s->display->display, s->root); |
909 |
glXSwapBuffers (s->display->display, s->root); |
| 899 |
} |
910 |
} |