Added few more stubs so that control reaches to DestroyDevice().
[mesa.git] / src / glx / singlepix.c
index 6348f8285806fc91620c2c2e01bc696afbb4c1bf..e1468c63c2bc9f31e67041b28e390e6968c0befc 100644 (file)
@@ -31,7 +31,6 @@
 #include "packsingle.h"
 #include "indirect.h"
 #include "glapi.h"
-#include "glthread.h"
 #include <GL/glxproto.h>
 
 void
@@ -68,7 +67,7 @@ __indirect_glGetSeparableFilter(GLenum target, GLenum format, GLenum type,
       heightsize = __glImageSize(height, 1, 1, format, type, 0);
 
       /* Allocate a holding buffer to transform the data from */
-      rowBuf = (GLubyte *) malloc(widthsize);
+      rowBuf = malloc(widthsize);
       if (!rowBuf) {
          /* Throw data away */
          _XEatData(dpy, compsize);
@@ -82,7 +81,7 @@ __indirect_glGetSeparableFilter(GLenum target, GLenum format, GLenum type,
          __glEmptyImage(gc, 1, width, 1, 1, format, type, rowBuf, row);
          free((char *) rowBuf);
       }
-      colBuf = (GLubyte *) malloc(heightsize);
+      colBuf = malloc(heightsize);
       if (!colBuf) {
          /* Throw data away */
          _XEatData(dpy, compsize - __GLX_PAD(widthsize));
@@ -155,7 +154,7 @@ void gl_dispatch_stub_GetSeparableFilterEXT (GLenum target, GLenum format,
             const GLint heightsize =
                __glImageSize(height, 1, 1, format, type, 0);
             GLubyte *const buf =
-               (GLubyte *) malloc((widthsize > heightsize) ? widthsize : heightsize);
+               malloc((widthsize > heightsize) ? widthsize : heightsize);
 
             if (buf == NULL) {
                /* Throw data away */