fixed pointer arithmetic error in glCopyPixels
[mesa.git] / src / mesa / main / accum.c
index 32c2298c74e6796a520a78593a1f5d6f02f6986c..d190508a6158a0e88540bc1088a21aaf521f8054 100644 (file)
@@ -1,10 +1,10 @@
-/* $Id: accum.c,v 1.36 2001/03/03 20:33:27 brianp Exp $ */
+/* $Id: accum.c,v 1.38 2001/09/14 21:36:43 brianp Exp $ */
 
 /*
  * Mesa 3-D graphics library
  * Version:  3.5
  *
- * Copyright (C) 1999-2000  Brian Paul   All Rights Reserved.
+ * Copyright (C) 1999-2001  Brian Paul   All Rights Reserved.
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
  * copy of this software and associated documentation files (the "Software"),
@@ -47,10 +47,10 @@ _mesa_ClearAccum( GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha )
    GET_CURRENT_CONTEXT(ctx);
    ASSERT_OUTSIDE_BEGIN_END(ctx);
 
-   tmp[0] = CLAMP( red, -1.0, 1.0 );
-   tmp[1] = CLAMP( green, -1.0, 1.0 );
-   tmp[2] = CLAMP( blue, -1.0, 1.0 );
-   tmp[3] = CLAMP( alpha, -1.0, 1.0 );
+   tmp[0] = CLAMP( red,   -1.0F, 1.0F );
+   tmp[1] = CLAMP( green, -1.0F, 1.0F );
+   tmp[2] = CLAMP( blue,  -1.0F, 1.0F );
+   tmp[3] = CLAMP( alpha, -1.0F, 1.0F );
 
    if (TEST_EQ_4V(tmp, ctx->Accum.ClearColor))
       return;