aboutsummaryrefslogtreecommitdiffstats
path: root/src/glx/renderpix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glx/renderpix.c')
-rw-r--r--src/glx/renderpix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glx/renderpix.c b/src/glx/renderpix.c
index 508a1e10459..a88b544c764 100644
--- a/src/glx/renderpix.c
+++ b/src/glx/renderpix.c
@@ -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;