OSDN Git Service

intel: Suppress a compiler warning for an pointer->int cast
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 3 Oct 2009 22:08:39 +0000 (23:08 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 3 Oct 2009 22:08:39 +0000 (23:08 +0100)
commitf194d2737b059cf6b99caa18f8ec2d46a55ada88
treeae1d8bb9391979dc0ba176ad714e30fcf99f3032
parent470ec8d42e1941c0ad773084693323f96a83e64d
intel: Suppress a compiler warning for an pointer->int cast

intel_pixel_read.c: In function ‘do_blit_readpixels’:
intel_pixel_read.c:221: warning: cast from pointer to integer of
different size

Cast via an intermediate (GLintptr) instead and hope the result fits
within GLuint... [It should as we simply do not support textures *that*
large!]

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/mesa/drivers/dri/intel/intel_pixel_read.c