mesa: 78-column wrapping in extensions.c

This commit is contained in:
Brian Paul 2013-12-16 09:40:03 -07:00
parent 4bf3afdde9
commit eaaa9695b2

View file

@ -480,7 +480,8 @@ set_extension( struct gl_context *ctx, const char *name, GLboolean state )
if (ctx->Extensions.String) { if (ctx->Extensions.String) {
/* The string was already queried - can't change it now! */ /* The string was already queried - can't change it now! */
_mesa_problem(ctx, "Trying to enable/disable extension after glGetString(GL_EXTENSIONS): %s", name); _mesa_problem(ctx, "Trying to enable/disable extension after "
"glGetString(GL_EXTENSIONS): %s", name);
return GL_FALSE; return GL_FALSE;
} }
@ -679,10 +680,10 @@ _mesa_make_extension_string(struct gl_context *ctx)
return NULL; return NULL;
} }
/* Sort extensions in chronological order because certain old applications (e.g., /* Sort extensions in chronological order because certain old applications
* Quake3 demo) store the extension list in a static size buffer so chronologically * (e.g., Quake3 demo) store the extension list in a static size buffer so
* order ensure that the extensions that such applications expect will fit into * chronologically order ensure that the extensions that such applications
* that buffer. * expect will fit into that buffer.
*/ */
j = 0; j = 0;
for (i = extension_table; i->name != 0; ++i) { for (i = extension_table; i->name != 0; ++i) {
@ -693,7 +694,8 @@ _mesa_make_extension_string(struct gl_context *ctx)
} }
} }
assert(j == count); assert(j == count);
qsort(extension_indices, count, sizeof *extension_indices, extension_compare); qsort(extension_indices, count,
sizeof *extension_indices, extension_compare);
/* Build the extension string.*/ /* Build the extension string.*/
for (j = 0; j < count; ++j) { for (j = 0; j < count; ++j) {