Module: Mesa
Branch: master
Commit: f800a29ee2e331740de8fbc409efa9f0593900fc
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=f800a29ee2e331740de8fbc409efa9f0593900fc

Author: José Fonseca <[email protected]>
Date:   Fri Nov  4 08:54:55 2011 +0000

swrast: Avoid void * arithmetic.

An error with MSVC.

---

 src/mesa/swrast/s_readpix.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/swrast/s_readpix.c b/src/mesa/swrast/s_readpix.c
index c36746c..50422db 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;

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to