summaryrefslogtreecommitdiff
path: root/src/mesa/swrast/s_copypix.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2001-07-13 15:24:34 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2001-07-13 15:24:34 +0000
commit77a4754d73ae4b9f69e8a3b7fdb0f17cb000c84a (patch)
tree4f882b1db9b66db763e7eda47807a4c7822618dc /src/mesa/swrast/s_copypix.c
parent0cab1db7763392f9df2c3dfa598d6a81d5af4606 (diff)
fixed two bad casts (Stephane Conversy)
Diffstat (limited to 'src/mesa/swrast/s_copypix.c')
-rw-r--r--src/mesa/swrast/s_copypix.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/swrast/s_copypix.c b/src/mesa/swrast/s_copypix.c
index ab8198945c..dcdf2e16f0 100644
--- a/src/mesa/swrast/s_copypix.c
+++ b/src/mesa/swrast/s_copypix.c
@@ -1,4 +1,4 @@
-/* $Id: s_copypix.c,v 1.21 2001/06/26 21:15:36 brianp Exp $ */
+/* $Id: s_copypix.c,v 1.22 2001/07/13 15:24:34 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -193,7 +193,7 @@ copy_conv_rgba_pixels(GLcontext *ctx, GLint srcx, GLint srcy,
/* do image transfer ops up until convolution */
for (row = 0; row < height; row++) {
- GLfloat (*rgba)[4] = (GLfloat (*)[4]) tmpImage + row * width * 4;
+ GLfloat (*rgba)[4] = (GLfloat (*)[4]) (tmpImage + row * width * 4);
/* scale & bias */
if (transferOps & IMAGE_SCALE_BIAS_BIT) {
@@ -225,7 +225,7 @@ copy_conv_rgba_pixels(GLcontext *ctx, GLint srcx, GLint srcy,
/* do remaining image transfer ops */
for (row = 0; row < height; row++) {
- GLfloat (*rgba)[4] = (GLfloat (*)[4]) convImage + row * width * 4;
+ GLfloat (*rgba)[4] = (GLfloat (*)[4]) (convImage + row * width * 4);
/* GL_POST_CONVOLUTION_COLOR_TABLE lookup */
if (transferOps & IMAGE_POST_CONVOLUTION_COLOR_TABLE_BIT) {