oops, get.c is autogenerated
authorKeith Whitwell <keith@tungstengraphics.com>
Mon, 30 Oct 2006 20:29:13 +0000 (20:29 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Mon, 30 Oct 2006 20:29:13 +0000 (20:29 +0000)
src/mesa/main/get.c
src/mesa/main/get_gen.py

index 2a24b56974ceefb7ad7b53b331adf14e74fc6e1a..3dd1aa18737095a9acf6c0c3cd98b99a32f52449 100644 (file)
@@ -323,7 +323,7 @@ _mesa_GetBooleanv( GLenum pname, GLboolean *params )
       case GL_EDGE_FLAG:
          {
          FLUSH_CURRENT(ctx, 0);
-         params[0] = (ctx->Current.Attrib[VERT_ATTRIB_EDGEFLAG][0] == 1.0F);
+         params[0] = (ctx->Current.Attrib[VERT_ATTRIB_EDGEFLAG][0] == 1.0);
          }
          break;
       case GL_FEEDBACK_BUFFER_SIZE:
@@ -2147,7 +2147,7 @@ _mesa_GetFloatv( GLenum pname, GLfloat *params )
       case GL_EDGE_FLAG:
          {
          FLUSH_CURRENT(ctx, 0);
-         params[0] = BOOLEAN_TO_FLOAT(ctx->Current.Attrib[VERT_ATTRIB_EDGEFLAG][0] == 1.0F);
+         params[0] = BOOLEAN_TO_FLOAT((ctx->Current.Attrib[VERT_ATTRIB_EDGEFLAG][0] == 1.0));
          }
          break;
       case GL_FEEDBACK_BUFFER_SIZE:
@@ -3971,7 +3971,7 @@ _mesa_GetIntegerv( GLenum pname, GLint *params )
       case GL_EDGE_FLAG:
          {
          FLUSH_CURRENT(ctx, 0);
-         params[0] = BOOLEAN_TO_INT(ctx->Current.Attrib[VERT_ATTRIB_EDGEFLAG][0] == 1.0F);
+         params[0] = BOOLEAN_TO_INT((ctx->Current.Attrib[VERT_ATTRIB_EDGEFLAG][0] == 1.0));
          }
          break;
       case GL_FEEDBACK_BUFFER_SIZE:
index a9e04863a7e3841fa06cac86961b26c61020e207..ec8a192b31a1aec501df3fca7392b786b234ae81 100644 (file)
@@ -190,7 +190,7 @@ StateVars = [
        ( "GL_DOUBLEBUFFER", GLboolean,
          ["ctx->DrawBuffer->Visual.doubleBufferMode"], "", None ),
        ( "GL_DRAW_BUFFER", GLenum, ["ctx->DrawBuffer->ColorDrawBuffer[0]"], "", None ),
-       ( "GL_EDGE_FLAG", GLboolean, ["ctx->Current.EdgeFlag"],
+       ( "GL_EDGE_FLAG", GLboolean, ["(ctx->Current.Attrib[VERT_ATTRIB_EDGEFLAG][0] == 1.0)"],
          "FLUSH_CURRENT(ctx, 0);", None ),
        ( "GL_FEEDBACK_BUFFER_SIZE", GLint, ["ctx->Feedback.BufferSize"], "", None ),
        ( "GL_FEEDBACK_BUFFER_TYPE", GLenum, ["ctx->Feedback.Type"], "", None ),