소스 검색

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

(ie initialize) their internal data.
tags/embedded-1-20030120
Keith Whitwell 23 년 전
부모
커밋
97aa6f3734
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2
    3
      src/miniglx/dri_util.c

+ 2
- 3
src/miniglx/dri_util.c 파일 보기

@@ -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…
취소
저장