extern "C" {
#include <talloc.h>
+#include "main/mtypes.h"
}
#include "ast.h"
} else if (strcmp(name, "GL_ARB_texture_rectangle") == 0) {
state->ARB_texture_rectangle_enable = (ext_mode != extension_disable);
state->ARB_texture_rectangle_warn = (ext_mode == extension_warn);
+ } else if (strcmp(name, "GL_EXT_texture_array") == 0) {
+ state->EXT_texture_array_enable = (ext_mode != extension_disable);
+ state->EXT_texture_array_warn = (ext_mode == extension_warn);
+
+ unsupported = !state->extensions->EXT_texture_array;
} else {
unsupported = true;
}
unsigned EXT_texture_array_enable:1;
unsigned EXT_texture_array_warn:1;
/*@}*/
+
+ /** Extensions supported by the OpenGL implementation. */
+ const struct gl_extensions *extensions;
};
typedef struct YYLTYPE {
state->ARB_texture_rectangle_enable = true;
memset(&ext, 0, sizeof(ext));
+ state->extensions = &ext;
state->Const.MaxDrawBuffers = 2;
state->Const.MaxTextureCoords = 4;
state->loop_or_switch_nesting = NULL;
state->ARB_texture_rectangle_enable = true;
+ state->extensions = &ctx->Extensions;
state->Const.MaxDrawBuffers = ctx->Const.MaxDrawBuffers;
state->Const.MaxTextureCoords = ctx->Const.MaxTextureCoordUnits;