Parcourir la source

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

(ie initialize) their internal data.
tags/embedded-1-20030120
Keith Whitwell il y a 23 ans
Parent
révision
97aa6f3734
1 fichiers modifiés avec 2 ajouts et 3 suppressions
  1. 2
    3
      src/miniglx/dri_util.c

+ 2
- 3
src/miniglx/dri_util.c Voir le fichier

@@ -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) {

Chargement…
Annuler
Enregistrer