mesa: Make Geom.UsesEndPrimitive a bool instead of a GLboolean
authorIago Toral Quiroga <itoral@igalia.com>
Fri, 20 Jun 2014 08:01:40 +0000 (10:01 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Mon, 23 Jun 2014 05:55:51 +0000 (07:55 +0200)
src/mesa/main/mtypes.h
src/mesa/main/shaderobj.c

index fff0aabe63b7a7208ed7fc3d08fe5fdc1337258a..4762d9616b308c07fcc402fa4b15b9fe93f102bd 100644 (file)
@@ -2176,7 +2176,7 @@ struct gl_geometry_program
    GLenum InputType;  /**< GL_POINTS, GL_LINES, GL_LINES_ADJACENCY_ARB,
                            GL_TRIANGLES, or GL_TRIANGLES_ADJACENCY_ARB */
    GLenum OutputType; /**< GL_POINTS, GL_LINE_STRIP or GL_TRIANGLE_STRIP */
-   GLboolean UsesEndPrimitive;
+   bool UsesEndPrimitive;
 };
 
 
@@ -2679,7 +2679,7 @@ struct gl_shader_program
       GLboolean UsesClipDistance;
       GLuint ClipDistanceArraySize; /**< Size of the gl_ClipDistance array, or
                                          0 if not present. */
-      GLboolean UsesEndPrimitive;
+      bool UsesEndPrimitive;
    } Geom;
 
    /** Vertex shader state */
index 5712c18d860abda83a4568972825ccbc63943fbb..c6e852c876c1eea65b96d2f82c64db93c5d5e2e1 100644 (file)
@@ -248,7 +248,7 @@ _mesa_init_shader_program(struct gl_context *ctx, struct gl_shader_program *prog
    prog->Geom.VerticesOut = 0;
    prog->Geom.InputType = GL_TRIANGLES;
    prog->Geom.OutputType = GL_TRIANGLE_STRIP;
-   prog->Geom.UsesEndPrimitive = GL_FALSE;
+   prog->Geom.UsesEndPrimitive = false;
 
    prog->TransformFeedback.BufferMode = GL_INTERLEAVED_ATTRIBS;