Browse Source

Initialize lastStamp to 1, so that drivers know they need to update

(ie initialize) their internal data.
tags/embedded-1-20030120
Keith Whitwell 23 years ago
parent
commit
97aa6f3734
1 changed files with 2 additions and 3 deletions
  1. 2
    3
      src/miniglx/dri_util.c

+ 2
- 3
src/miniglx/dri_util.c View File

@@ -236,8 +236,8 @@ static void *driCreateDrawable(Display *dpy, int scrn,

pdp->draw = draw;
pdp->refcount = 0;
pdp->pStamp = &pdp->lastStamp; /* cliprects will never change */
pdp->lastStamp = 0;
pdp->pStamp = &pdp->lastStamp;
pdp->lastStamp = 1;
pdp->index = 0;
pdp->numBackClipRects = 0;
pdp->pBackClipRects = NULL;
@@ -398,7 +398,6 @@ __driUtilCreateScreen(Display *dpy, int scrn, __DRIscreen *psc,
__DRIscreenPrivate *psp;
char *driverName;
drmHandle hFB;
drmMagic magic;

psp = (__DRIscreenPrivate *)malloc(sizeof(__DRIscreenPrivate));
if (!psp) {

Loading…
Cancel
Save