[Mesa-dev] [PATCH] st/mesa: fix possible MSVC build error

Brian Paul brianp at vmware.com
Tue Jan 8 12:41:10 PST 2013


On 01/08/2013 11:40 AM, Marek Olšák wrote:
> https://bugs.freedesktop.org/show_bug.cgi?id=59143
> ---
>   src/mesa/state_tracker/st_cb_texture.c |    2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c
> index 02fc675..e869d61 100644
> --- a/src/mesa/state_tracker/st_cb_texture.c
> +++ b/src/mesa/state_tracker/st_cb_texture.c
> @@ -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;
> +   uint8_t *texDest;
>      enum pipe_transfer_usage transfer_usage;
>      void *map;
>      unsigned dst_width = width;

Or maybe use GLubyte * and also get rid of the cast in the call to 
_mesa_texstore() below.

-Brian



More information about the mesa-dev mailing list