summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/get.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/main/get.c')
-rw-r--r--src/mesa/main/get.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c
index b6f08efc34d..fcc879576ce 100644
--- a/src/mesa/main/get.c
+++ b/src/mesa/main/get.c
@@ -5627,7 +5627,7 @@ _mesa_GetDoublev( GLenum pname, GLdouble *params )
_mesa_GetFloatv(pname, values);
- for (i = 0; values[i] != magic && i < 16; i++)
+ for (i = 0; i < 16 && values[i] != magic; i++)
params[i] = (GLdouble) values[i];
}