etnaviv: Use hash table to track BO indexes
[mesa.git] / src / glx / renderpix.c
index 508a1e10459e84e21e54e8bec97958a5f22e6bd4..a88b544c7647325fa9c9578ca716bd662c53f2b4 100644 (file)
@@ -84,7 +84,7 @@ __glXSendLargeImage(struct glx_context * gc, GLint compsize, GLint dim,
                     GLubyte * pc, GLubyte * modes)
 {
     /* Allocate a temporary holding buffer */
-    GLubyte *buf = (GLubyte *) malloc(compsize);
+    GLubyte *buf = malloc(compsize);
     if (!buf) {
        __glXSetError(gc, GL_OUT_OF_MEMORY);
        return;
@@ -178,7 +178,7 @@ __indirect_glSeparableFilter2D(GLenum target, GLenum internalformat,
       pc += hdrlen;
 
       /* Allocate a temporary holding buffer */
-      buf = (GLubyte *) malloc(bufsize);
+      buf = malloc(bufsize);
       if (!buf) {
          __glXSetError(gc, GL_OUT_OF_MEMORY);
          return;