glx: drop unused cleargc
This commit is contained in:
parent
23b55a61f8
commit
3108980f5e
|
@ -81,7 +81,6 @@ struct __GLXDRIdrawable {
|
||||||
__GLXDRIscreen *screen;
|
__GLXDRIscreen *screen;
|
||||||
|
|
||||||
GCPtr gc; /* scratch GC for span drawing */
|
GCPtr gc; /* scratch GC for span drawing */
|
||||||
GCPtr cleargc; /* GC for clearing the color buffer */
|
|
||||||
GCPtr swapgc; /* GC for swapping the color buffers */
|
GCPtr swapgc; /* GC for swapping the color buffers */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -94,7 +93,6 @@ __glXDRIdrawableDestroy(__GLXdrawable *drawable)
|
||||||
(*core->destroyDrawable)(private->driDrawable);
|
(*core->destroyDrawable)(private->driDrawable);
|
||||||
|
|
||||||
FreeScratchGC(private->gc);
|
FreeScratchGC(private->gc);
|
||||||
FreeScratchGC(private->cleargc);
|
|
||||||
FreeScratchGC(private->swapgc);
|
FreeScratchGC(private->swapgc);
|
||||||
|
|
||||||
xfree(private);
|
xfree(private);
|
||||||
|
@ -335,11 +333,9 @@ __glXDRIscreenCreateDrawable(__GLXscreen *screen,
|
||||||
private->base.copySubBuffer = __glXDRIdrawableCopySubBuffer;
|
private->base.copySubBuffer = __glXDRIdrawableCopySubBuffer;
|
||||||
|
|
||||||
private->gc = CreateScratchGC(pScreen, pDraw->depth);
|
private->gc = CreateScratchGC(pScreen, pDraw->depth);
|
||||||
private->cleargc = CreateScratchGC(pScreen, pDraw->depth);
|
|
||||||
private->swapgc = CreateScratchGC(pScreen, pDraw->depth);
|
private->swapgc = CreateScratchGC(pScreen, pDraw->depth);
|
||||||
|
|
||||||
glxChangeGC(private->gc, GCFunction, GXcopy);
|
glxChangeGC(private->gc, GCFunction, GXcopy);
|
||||||
glxChangeGC(private->cleargc, GCFunction, GXcopy);
|
|
||||||
glxChangeGC(private->swapgc, GCFunction, GXcopy);
|
glxChangeGC(private->swapgc, GCFunction, GXcopy);
|
||||||
glxChangeGC(private->swapgc, GCGraphicsExposures, FALSE);
|
glxChangeGC(private->swapgc, GCGraphicsExposures, FALSE);
|
||||||
|
|
||||||
|
@ -378,9 +374,6 @@ swrastPutImage(__DRIdrawable *draw, int op,
|
||||||
case __DRI_SWRAST_IMAGE_OP_DRAW:
|
case __DRI_SWRAST_IMAGE_OP_DRAW:
|
||||||
gc = drawable->gc;
|
gc = drawable->gc;
|
||||||
break;
|
break;
|
||||||
case __DRI_SWRAST_IMAGE_OP_CLEAR:
|
|
||||||
gc = drawable->cleargc;
|
|
||||||
break;
|
|
||||||
case __DRI_SWRAST_IMAGE_OP_SWAP:
|
case __DRI_SWRAST_IMAGE_OP_SWAP:
|
||||||
gc = drawable->swapgc;
|
gc = drawable->swapgc;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user