summaryrefslogtreecommitdiff
path: root/src/mesa/swrast/s_bitmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/swrast/s_bitmap.c')
-rw-r--r--src/mesa/swrast/s_bitmap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_bitmap.c b/src/mesa/swrast/s_bitmap.c
index 6c8f515b62..8bd9854f0c 100644
--- a/src/mesa/swrast/s_bitmap.c
+++ b/src/mesa/swrast/s_bitmap.c
@@ -54,7 +54,8 @@ _swrast_Bitmap( GLcontext *ctx, GLint px, GLint py,
ASSERT(ctx->RenderMode == GL_RENDER);
- bitmap = _swrast_validate_pbo_access(unpack, width, height, 1,
+ bitmap = (const GLubyte *) _swrast_validate_pbo_access(unpack, width,
+ height, 1,
GL_COLOR_INDEX, GL_BITMAP,
(GLvoid *) bitmap);
if (!bitmap) {