Mesa (master): mesa: fix the format of glEdgeFlagPointer
Marek Olšák
mareko at kemper.freedesktop.org
Fri Mar 7 17:07:58 UTC 2014
Module: Mesa
Branch: master
Commit: 780ce576bb1781f027797039693b98253ee4813e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=780ce576bb1781f027797039693b98253ee4813e
Author: Marek Olšák <marek.olsak at amd.com>
Date: Mon Mar 3 01:01:05 2014 +0100
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: mesa-stable at lists.freedesktop.org
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
---
src/mesa/main/varray.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c
index 44db2cb..b4b6fa9 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);
More information about the mesa-commit
mailing list