Module: Mesa
Branch: master
Commit: 8ba5c79d2c075978947350507e5deb5477eb23ad
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=8ba5c79d2c075978947350507e5deb5477eb23ad

Author: Brian Paul <bri...@vmware.com>
Date:   Mon Jul  8 09:55:38 2013 -0600

mesa: add cast to silence MSVC warning

---

 src/mesa/main/texparam.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/texparam.c b/src/mesa/main/texparam.c
index cf9a301..141cbe3 100644
--- a/src/mesa/main/texparam.c
+++ b/src/mesa/main/texparam.c
@@ -1547,7 +1547,7 @@ _mesa_GetTexParameterfv( GLenum target, GLenum pname, 
GLfloat *params )
       case GL_REQUIRED_TEXTURE_IMAGE_UNITS_OES:
          if (!_mesa_is_gles(ctx) || !ctx->Extensions.OES_EGL_image_external)
             goto invalid_pname;
-         *params = obj->RequiredTextureImageUnits;
+         *params = (GLfloat) obj->RequiredTextureImageUnits;
          break;
 
       case GL_TEXTURE_SRGB_DECODE_EXT:

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to