mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
vbo: Avoid double promotion.
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
This commit is contained in:
parent
b568a5f6a8
commit
2b47ef715a
2 changed files with 5 additions and 5 deletions
|
|
@ -37,9 +37,9 @@
|
|||
|
||||
static GLuint check_size( const GLfloat *attr )
|
||||
{
|
||||
if (attr[3] != 1.0) return 4;
|
||||
if (attr[2] != 0.0) return 3;
|
||||
if (attr[1] != 0.0) return 2;
|
||||
if (attr[3] != 1.0F) return 4;
|
||||
if (attr[2] != 0.0F) return 3;
|
||||
if (attr[1] != 0.0F) return 2;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -255,7 +255,7 @@ check_array_data(struct gl_context *ctx, struct gl_client_array *array,
|
|||
GLint k;
|
||||
for (k = 0; k < array->Size; k++) {
|
||||
if (IS_INF_OR_NAN(f[k]) ||
|
||||
f[k] >= 1.0e20 || f[k] <= -1.0e10) {
|
||||
f[k] >= 1.0e20F || f[k] <= -1.0e10F) {
|
||||
printf("Bad array data:\n");
|
||||
printf(" Element[%u].%u = %f\n", j, k, f[k]);
|
||||
printf(" Array %u at %p\n", attrib, (void* ) array);
|
||||
|
|
@ -263,7 +263,7 @@ check_array_data(struct gl_context *ctx, struct gl_client_array *array,
|
|||
array->Type, array->Size, array->Stride);
|
||||
printf(" Address/offset %p in Buffer Object %u\n",
|
||||
array->Ptr, array->BufferObj->Name);
|
||||
f[k] = 1.0; /* XXX replace the bad value! */
|
||||
f[k] = 1.0F; /* XXX replace the bad value! */
|
||||
}
|
||||
/*assert(!IS_INF_OR_NAN(f[k]));*/
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue