i965: Resolve GCC sign-compare warning.
mesa/src/mesa/drivers/dri/i965/brw_primitive_restart.c: In function 'can_cut_index_handle_prims': mesa/src/mesa/drivers/dri/i965/brw_primitive_restart.c:94:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < nr_prims; i++) { ^ Signed-off-by: Rhys Kidd <rhyskidd@gmail.com> Reviewed-by: Thomas Helland <thomashelland90@gmail.com>
This commit is contained in:
parent
5be455281e
commit
9febec0811
|
@ -91,7 +91,7 @@ can_cut_index_handle_prims(struct gl_context *ctx,
|
|||
return false;
|
||||
}
|
||||
|
||||
for (int i = 0; i < nr_prims; i++) {
|
||||
for (unsigned i = 0; i < nr_prims; i++) {
|
||||
switch (prim[i].mode) {
|
||||
case GL_POINTS:
|
||||
case GL_LINES:
|
||||
|
|
Loading…
Reference in New Issue