From 3070fc1a4e89489e6181b5133ab8b6bfd01e4595 Mon Sep 17 00:00:00 2001 From: Magnus Kessler Date: Tue, 2 Mar 2010 06:42:00 +0000 Subject: [PATCH] glx: remove unused variable "data" from CreateData in glx_puffer.c Fixes http://bugs.freedesktop.org/show_bug.cgi?id=26832 --- src/glx/glx_pbuffer.c | 5 ----- 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/src/glx/glx_pbuffer.c b/src/glx/glx_pbuffer.c index f635138..4613477 100644 --- a/src/glx/glx_pbuffer.c +++ b/src/glx/glx_pbuffer.c @@ -353,7 +353,6 @@ CreateDrawable(Display * dpy, const __GLcontextModes * fbconfig, Drawable drawable, const int *attrib_list, CARD8 glxCode) { xGLXCreateWindowReq *req; - CARD32 *data; unsigned int i; CARD8 opcode; @@ -369,7 +368,6 @@ CreateDrawable(Display * dpy, const __GLcontextModes * fbconfig, LockDisplay(dpy); GetReqExtra(GLXCreateWindow, 8 * i, req); - data = (CARD32 *) (req + 1); req->reqType = opcode; req->glxCode = glxCode; @@ -379,9 +377,6 @@ CreateDrawable(Display * dpy, const __GLcontextModes * fbconfig, req->glxwindow = (GLXWindow) XAllocID(dpy); req->numAttribs = (CARD32) i; - assert(attrib_list); - memcpy(data, attrib_list, 8 * i); - UnlockDisplay(dpy); SyncHandle(); -- 1.7.0