static void edgeflag_attr1fv(GLcontext *ctx, GLint target, const GLfloat *v)
{
- ctx->Exec->EdgeFlag((v[0] == 1.0));
+ ctx->Exec->EdgeFlag((GLboolean)(v[0] == 1.0));
}
struct loopback_attr {
struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx);
struct tnl_clipspace_attr *a = vtx->attr;
GLubyte *v = (GLubyte *)dest;
- int i, j;
+ GLuint i, j;
GLuint count = vtx->attr_count;
GLuint stride;
if (tnl->NeedNdcCoords) {
const GLfloat *dstclip = VB->ClipPtr->data[edst];
if (dstclip[3] != 0.0) {
- const GLfloat w = 1.0 / dstclip[3];
+ const GLfloat w = 1.0f / dstclip[3];
GLfloat pos[4];
pos[0] = dstclip[0] * w;
int j;
for (j = 0; j < attr_count; j++) {
- if (a[j].attrib == attr) {
+ if (a[j].attrib == (int)attr) {
a[j].extract( &a[j], dest, (GLubyte *)vin + a[j].vertoffset );
return;
}
{
struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx);
int offset = 0;
- int i;
+ GLuint i;
assert(nr < _TNL_ATTRIB_MAX);
assert(nr == 0 || map[0].attrib == VERT_ATTRIB_POS);