summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2011-11-04 08:54:55 +0000
committerJosé Fonseca <[email protected]>2011-11-04 08:54:55 +0000
commitf800a29ee2e331740de8fbc409efa9f0593900fc (patch)
treed515dc683da1128cba6d3d6c6c3a95704ed8bc2b /src/mesa/swrast
parenteab201bad4d4f250ca9318a228d1c71561daee1a (diff)
swrast: Avoid void * arithmetic.
An error with MSVC.
Diffstat (limited to 'src/mesa/swrast')
-rw-r--r--src/mesa/swrast/s_readpix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_readpix.c b/src/mesa/swrast/s_readpix.c
index c36746cafaf..50422dbd59f 100644
--- a/src/mesa/swrast/s_readpix.c
+++ b/src/mesa/swrast/s_readpix.c
@@ -305,7 +305,7 @@ static GLboolean
fast_read_depth_stencil_pixels(struct gl_context *ctx,
GLint x, GLint y,
GLsizei width, GLsizei height,
- GLvoid *dst, int dstStride)
+ GLubyte *dst, int dstStride)
{
struct gl_framebuffer *fb = ctx->ReadBuffer;
struct gl_renderbuffer *rb = fb->Attachment[BUFFER_DEPTH].Renderbuffer;