diff options
author | George Sapountzis <gsap7@yahoo.gr> | 2008-06-13 15:58:56 +0300 |
---|---|---|
committer | George Sapountzis <gsap7@yahoo.gr> | 2008-06-13 16:00:15 +0300 |
commit | 3108980f5e78c129b23ff32f72564cf9a746c693 (patch) | |
tree | e43dc0c883039a07782f0b01cba03cc7bd308357 /glx/glxdriswrast.c | |
parent | 23b55a61f89f69454a3b0e3413b1f07d5fdf43aa (diff) |
glx: drop unused cleargc
Diffstat (limited to 'glx/glxdriswrast.c')
-rw-r--r-- | glx/glxdriswrast.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/glx/glxdriswrast.c b/glx/glxdriswrast.c index 9d987c238..cf4827e5c 100644 --- a/glx/glxdriswrast.c +++ b/glx/glxdriswrast.c @@ -81,7 +81,6 @@ struct __GLXDRIdrawable { __GLXDRIscreen *screen; GCPtr gc; /* scratch GC for span drawing */ - GCPtr cleargc; /* GC for clearing the color buffer */ GCPtr swapgc; /* GC for swapping the color buffers */ }; @@ -94,7 +93,6 @@ __glXDRIdrawableDestroy(__GLXdrawable *drawable) (*core->destroyDrawable)(private->driDrawable); FreeScratchGC(private->gc); - FreeScratchGC(private->cleargc); FreeScratchGC(private->swapgc); xfree(private); @@ -335,11 +333,9 @@ __glXDRIscreenCreateDrawable(__GLXscreen *screen, private->base.copySubBuffer = __glXDRIdrawableCopySubBuffer; private->gc = CreateScratchGC(pScreen, pDraw->depth); - private->cleargc = CreateScratchGC(pScreen, pDraw->depth); private->swapgc = CreateScratchGC(pScreen, pDraw->depth); glxChangeGC(private->gc, GCFunction, GXcopy); - glxChangeGC(private->cleargc, GCFunction, GXcopy); glxChangeGC(private->swapgc, GCFunction, GXcopy); glxChangeGC(private->swapgc, GCGraphicsExposures, FALSE); @@ -378,9 +374,6 @@ swrastPutImage(__DRIdrawable *draw, int op, case __DRI_SWRAST_IMAGE_OP_DRAW: gc = drawable->gc; break; - case __DRI_SWRAST_IMAGE_OP_CLEAR: - gc = drawable->cleargc; - break; case __DRI_SWRAST_IMAGE_OP_SWAP: gc = drawable->swapgc; break; |