int all;
int _GL_ARB_fragment_coord_conventions;
+ int _GL_ARB_texture_rectangle;
};
unsigned int parsing_builtin;
unsigned int fragment_coord_conventions:1;
+ unsigned int texture_rectangle:1;
char error[256];
int process_error;
} else if (id == ctx->dict.sampler2DShadow) {
_update(ctx, e, TYPE_SPECIFIER_SAMPLER2DSHADOW);
} else if (id == ctx->dict.sampler2DRect) {
+ if (!ctx->texture_rectangle) {
+ _error(ctx, "GL_ARB_texture_rectangle extension must be enabled "
+ "in order to use a rect sampler");
+ return -1;
+ }
_update(ctx, e, TYPE_SPECIFIER_SAMPLER2DRECT);
} else if (id == ctx->dict.sampler2DRectShadow) {
+ if (!ctx->texture_rectangle) {
+ _error(ctx, "GL_ARB_texture_rectangle extension must be enabled "
+ "in order to use a rect sampler");
+ return -1;
+ }
_update(ctx, e, TYPE_SPECIFIER_SAMPLER2DRECTSHADOW);
} else if (id == ctx->dict.sampler1DArray) {
_update(ctx, e, TYPE_SPECIFIER_SAMPLER_1D_ARRAY);
} else if (id == ctx->dict.sampler2DShadow) {
type = TYPE_SPECIFIER_SAMPLER2DSHADOW;
} else if (id == ctx->dict.sampler2DRect) {
+ if (!ctx->texture_rectangle) {
+ _error(ctx, "GL_ARB_texture_rectangle extension must be enabled "
+ "in order to use a rect sampler");
+ return -1;
+ }
type = TYPE_SPECIFIER_SAMPLER2DRECT;
} else if (id == ctx->dict.sampler2DRectShadow) {
+ if (!ctx->texture_rectangle) {
+ _error(ctx, "GL_ARB_texture_rectangle extension must be enabled "
+ "in order to use a rect sampler");
+ return -1;
+ }
type = TYPE_SPECIFIER_SAMPLER2DRECTSHADOW;
} else if (id == ctx->dict.sampler1DArray) {
type = TYPE_SPECIFIER_SAMPLER_1D_ARRAY;
else if (input->data.extension == ctx->dict._GL_ARB_fragment_coord_conventions) {
ctx->fragment_coord_conventions = enable;
}
+ else if (input->data.extension == ctx->dict._GL_ARB_texture_rectangle) {
+ ctx->texture_rectangle = enable;
+ }
}
}
ADD_NAME(ctx, all);
ADD_NAME_STR(ctx, _GL_ARB_fragment_coord_conventions, "GL_ARB_fragment_coord_conventions");
+ ADD_NAME_STR(ctx, _GL_ARB_texture_rectangle, "GL_ARB_texture_rectangle");
ctx.out_buf = NULL;
ctx.out_cap = 0;
ctx.parsing_builtin = 1;
ctx.fragment_coord_conventions = 0;
+ ctx.texture_rectangle = 1;
ctx.error[0] = '\0';
ctx.process_error = 0;