From dc24230de7f913969b52dee3579bb8fa3d50a8c0 Mon Sep 17 00:00:00 2001 From: Karl Schultz Date: Sat, 30 Aug 2003 14:45:04 +0000 Subject: Silence compiler warnings about implicit casts or conversions by supplying explicit casts and/or tweaking constant and variable definitions. --- src/mesa/main/api_loopback.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/mesa/main/api_loopback.c') diff --git a/src/mesa/main/api_loopback.c b/src/mesa/main/api_loopback.c index ecd701da3b..010a49399a 100644 --- a/src/mesa/main/api_loopback.c +++ b/src/mesa/main/api_loopback.c @@ -1642,31 +1642,31 @@ loopback_VertexAttribs4ubvNV(GLuint index, GLsizei n, const GLubyte *v) static void loopback_VertexAttrib4bvARB(GLuint index, const GLbyte * v) { - ATTRIB(index, v[0], v[1], v[2], v[3]); + ATTRIB(index, (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2], (GLfloat) v[3]); } static void loopback_VertexAttrib4ivARB(GLuint index, const GLint * v) { - ATTRIB(index, v[0], v[1], v[2], v[3]); + ATTRIB(index, (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2], (GLfloat) v[3]); } static void loopback_VertexAttrib4ubvARB(GLuint index, const GLubyte * v) { - ATTRIB(index, v[0], v[1], v[2], v[3]); + ATTRIB(index, (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2], (GLfloat) v[3]); } static void loopback_VertexAttrib4usvARB(GLuint index, const GLushort * v) { - ATTRIB(index, v[0], v[1], v[2], v[3]); + ATTRIB(index, (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2], (GLfloat) v[3]); } static void loopback_VertexAttrib4uivARB(GLuint index, const GLuint * v) { - ATTRIB(index, v[0], v[1], v[2], v[3]); + ATTRIB(index, (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2], (GLfloat) v[3]); } static void -- cgit v1.2.3