mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 01:38:06 +02:00
fixup stamp so driver updates drawable info
This commit is contained in:
parent
456a513daa
commit
fb83a42d31
1 changed files with 15 additions and 0 deletions
|
|
@ -713,17 +713,32 @@ __eglGetDrawableInfo(__DRInativeDisplay * ndpy, int screen, __DRIid drawable,
|
|||
int* backX, int* backY,
|
||||
int* numBackClipRects, drm_clip_rect_t ** pBackClipRects )
|
||||
{
|
||||
__DRIscreen *pDRIScreen;
|
||||
__DRIscreenPrivate *psp;
|
||||
driSurface *surf = Lookup_driSurface(drawable);
|
||||
|
||||
pDRIScreen = __eglFindDRIScreen(ndpy, screen);
|
||||
|
||||
if ( (pDRIScreen == NULL) || (pDRIScreen->private == NULL) ) {
|
||||
return GL_FALSE;
|
||||
}
|
||||
psp = (__DRIscreenPrivate *) pDRIScreen->private;
|
||||
*X = 0;
|
||||
*Y = 0;
|
||||
*W = surf->Base.Width;
|
||||
*H = surf->Base.Height;
|
||||
|
||||
*backX = 0;
|
||||
*backY = 0;
|
||||
*numBackClipRects = 0;
|
||||
*pBackClipRects = NULL;
|
||||
|
||||
*numClipRects = 1;
|
||||
*pClipRects = malloc(sizeof(**pClipRects));
|
||||
**pClipRects = (drm_clip_rect_t){0, 0, surf->Base.Width, surf->Base.Height};
|
||||
|
||||
psp->pSAREA->drawableTable[0].stamp = 1;
|
||||
*stamp = 1;
|
||||
#if 0
|
||||
GLXDrawable drawable = (GLXDrawable) draw;
|
||||
drm_clip_rect_t * cliprect;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue