mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
glsl/apps: Explicitly add ARB_draw_buffers and ARB_texture_rectangle.
This commit is contained in:
parent
48c60b0ecb
commit
d1a09a9ba4
2 changed files with 22 additions and 0 deletions
|
|
@ -151,6 +151,17 @@ main(int argc,
|
|||
return 0;
|
||||
}
|
||||
|
||||
if (sl_pp_context_add_extension(context, "ARB_draw_buffers", "GL_ARB_draw_buffers") ||
|
||||
sl_pp_context_add_extension(context, "ARB_texture_rectangle", "GL_ARB_texture_rectangle")) {
|
||||
fprintf(out, "$ERROR: `%s'\n", sl_pp_context_error_message(context));
|
||||
|
||||
printf("Error: %s\n", sl_pp_context_error_message(context));
|
||||
sl_pp_context_destroy(context);
|
||||
free(tokens);
|
||||
fclose(out);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (sl_pp_process(context, &tokens[tokens_eaten], &outtokens)) {
|
||||
fprintf(out, "$ERROR: `%s'\n", sl_pp_context_error_message(context));
|
||||
|
||||
|
|
|
|||
|
|
@ -121,6 +121,17 @@ main(int argc,
|
|||
return -1;
|
||||
}
|
||||
|
||||
if (sl_pp_context_add_extension(context, "ARB_draw_buffers", "GL_ARB_draw_buffers") ||
|
||||
sl_pp_context_add_extension(context, "ARB_texture_rectangle", "GL_ARB_texture_rectangle")) {
|
||||
fprintf(out, "$ERROR: `%s'\n", sl_pp_context_error_message(context));
|
||||
|
||||
printf("Error: %s\n", sl_pp_context_error_message(context));
|
||||
sl_pp_context_destroy(context);
|
||||
free(tokens);
|
||||
fclose(out);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (sl_pp_process(context, &tokens[tokens_eaten], &outtokens)) {
|
||||
fprintf(out, "$ERROR: `%s'\n", sl_pp_context_error_message(context));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue