st/mesa: fix possible MSVC build error v2
authorMarek Olšák <maraeo@gmail.com>
Tue, 8 Jan 2013 19:39:55 +0000 (20:39 +0100)
committerMarek Olšák <maraeo@gmail.com>
Tue, 8 Jan 2013 20:53:13 +0000 (21:53 +0100)
https://bugs.freedesktop.org/show_bug.cgi?id=59143

Using GLubyte as per Brian's suggestion.

src/mesa/state_tracker/st_cb_texture.c

index 02fc675ae4c2852974ec1c41391ef9e83dc6647a..7f07b741ee0e81908a327b3f3ce5afcc11d978d0 100644 (file)
@@ -759,7 +759,7 @@ fallback_copy_texsubimage(struct gl_context *ctx,
    struct st_context *st = st_context(ctx);
    struct pipe_context *pipe = st->pipe;
    struct pipe_transfer *src_trans;
-   GLvoid *texDest;
+   GLubyte *texDest;
    enum pipe_transfer_usage transfer_usage;
    void *map;
    unsigned dst_width = width;
@@ -884,7 +884,7 @@ fallback_copy_texsubimage(struct gl_context *ctx,
                         texImage->_BaseFormat, 
                         texImage->TexFormat, 
                         dstRowStride,
-                        (GLubyte **) &texDest,
+                        &texDest,
                         width, height, 1,
                         GL_RGBA, GL_FLOAT, tempSrc, /* src */
                         &unpack);