mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 21:40:08 +01:00
gallium: silence warnings
This commit is contained in:
parent
cfeda4165b
commit
7049ff53f6
2 changed files with 3 additions and 3 deletions
|
|
@ -103,13 +103,13 @@ feedback_vertex(GLcontext *ctx, const struct draw_context *draw,
|
|||
*/
|
||||
|
||||
slot = st->vertex_result_to_slot[VERT_RESULT_COL0];
|
||||
if (slot != ~0)
|
||||
if (slot != ~0U)
|
||||
color = v->data[slot];
|
||||
else
|
||||
color = ctx->Current.Attrib[VERT_ATTRIB_COLOR0];
|
||||
|
||||
slot = st->vertex_result_to_slot[VERT_RESULT_TEX0];
|
||||
if (slot != ~0)
|
||||
if (slot != ~0U)
|
||||
texcoord = v->data[slot];
|
||||
else
|
||||
texcoord = ctx->Current.Attrib[VERT_ATTRIB_TEX0];
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ update_attrib(GLcontext *ctx, const GLuint *outputMapping,
|
|||
{
|
||||
const GLfloat *src;
|
||||
const GLuint k = outputMapping[result];
|
||||
if (k != ~0)
|
||||
if (k != ~0U)
|
||||
src = vert->data[k];
|
||||
else
|
||||
src = ctx->Current.Attrib[defaultAttrib];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue