OSDN Git Service

mesa: remove needless casts in save_EdgeFlag()
authorBrian Paul <brianp@vmware.com>
Tue, 8 May 2012 15:32:43 +0000 (09:32 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 8 May 2012 18:12:03 +0000 (12:12 -0600)
src/mesa/main/dlist.c

index a90ff33..c1c65ea 100644 (file)
@@ -5673,7 +5673,7 @@ save_Indexfv(const GLfloat * v)
 static void GLAPIENTRY
 save_EdgeFlag(GLboolean x)
 {
-   save_Attr1fNV(VERT_ATTRIB_EDGEFLAG, x ? (GLfloat)1.0 : (GLfloat)0.0);
+   save_Attr1fNV(VERT_ATTRIB_EDGEFLAG, x ? 1.0f : 0.0f);
 }