diff options
author | Marek Olšák <[email protected]> | 2014-03-03 01:01:05 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2014-03-07 18:07:05 +0100 |
commit | 780ce576bb1781f027797039693b98253ee4813e (patch) | |
tree | d5a1215579f3fe61ba193f54eb307999f6a82fbf | |
parent | 472ac0db08011af21174bb35e45858480b866346 (diff) |
mesa: fix the format of glEdgeFlagPointer
Softpipe expects a float in the vertex shader, which is what glEdgeFlag
generates.
This fixes piglit/gl-2.0-edgeflag.
Cc: [email protected]
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
-rw-r--r-- | src/mesa/main/varray.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index 44db2cbcd47..b4b6fa9beea 100644 --- a/src/mesa/main/varray.c +++ b/src/mesa/main/varray.c @@ -569,8 +569,8 @@ void GLAPIENTRY _mesa_EdgeFlagPointer(GLsizei stride, const GLvoid *ptr) { const GLbitfield legalTypes = UNSIGNED_BYTE_BIT; - /* see table 2.4 edits in GL_EXT_gpu_shader4 spec: */ - const GLboolean integer = GL_TRUE; + /* this is the same type that glEdgeFlag uses */ + const GLboolean integer = GL_FALSE; GET_CURRENT_CONTEXT(ctx); FLUSH_VERTICES(ctx, 0); |