mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 11:00:11 +01:00
slang: Explicitly enable ARB_draw_buffers and ARB_texture_rectangle.
They are no longer built into the glsl preprocessor.
This commit is contained in:
parent
91e164b3d0
commit
48c60b0ecb
1 changed files with 7 additions and 0 deletions
|
|
@ -2603,6 +2603,13 @@ compile_with_grammar(const char *source,
|
|||
return GL_FALSE;
|
||||
}
|
||||
|
||||
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")) {
|
||||
slang_info_log_error(infolog, "%s", sl_pp_context_error_message(context));
|
||||
sl_pp_context_destroy(context);
|
||||
return GL_FALSE;
|
||||
}
|
||||
|
||||
memset(&options, 0, sizeof(options));
|
||||
if (sl_pp_tokenise(context, source, &options, &intokens)) {
|
||||
slang_info_log_error(infolog, "%s", sl_pp_context_error_message(context));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue