mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02:00
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@lists.freedesktop.org
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
(cherry picked from commit 780ce576bb)
This commit is contained in:
parent
228ad18b84
commit
acfb3f7f02
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue