diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/pack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/pack.c b/src/mesa/main/pack.c index 83192c1574c..672a467aa1c 100644 --- a/src/mesa/main/pack.c +++ b/src/mesa/main/pack.c @@ -4913,7 +4913,7 @@ _mesa_unpack_depth_span( struct gl_context *ctx, GLuint n, else { /* need to use double precision to prevent overflow problems */ for (i = 0; i < n; i++) { - GLdouble z = depthValues[i] * (GLfloat) depthMax; + GLdouble z = depthValues[i] * (GLdouble) depthMax; if (z >= (GLdouble) 0xffffffff) zValues[i] = 0xffffffff; else |