diff options
author | Brian Paul <[email protected]> | 2012-10-27 08:58:19 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-10-29 17:56:05 -0600 |
commit | f6c83e1661c63cf719528f1e80e6996ce49c2d08 (patch) | |
tree | a94107723e498aa1b356fc126d518820b8cc375c /src/mesa/main/get.c | |
parent | 06bb81f01daaa87210456729d704f16c7e3f934b (diff) |
mesa: silence some MSVC conversion warnings in get.c
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/mesa/main/get.c')
-rw-r--r-- | src/mesa/main/get.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index e38d594e21c..805f0f978a7 100644 --- a/src/mesa/main/get.c +++ b/src/mesa/main/get.c @@ -1149,7 +1149,7 @@ _mesa_GetFloatv(GLenum pname, GLfloat *params) break; case TYPE_DOUBLEN: - params[0] = ((GLdouble *) p)[0]; + params[0] = (GLfloat) (((GLdouble *) p)[0]); break; case TYPE_INT_4: @@ -1170,7 +1170,7 @@ _mesa_GetFloatv(GLenum pname, GLfloat *params) break; case TYPE_INT64: - params[0] = ((GLint64 *) p)[0]; + params[0] = (GLfloat) (((GLint64 *) p)[0]); break; case TYPE_BOOLEAN: @@ -1449,7 +1449,7 @@ _mesa_GetDoublev(GLenum pname, GLdouble *params) break; case TYPE_INT64: - params[0] = ((GLint64 *) p)[0]; + params[0] = (GLdouble) (((GLint64 *) p)[0]); break; case TYPE_BOOLEAN: |