Home | Info | Community | Development | myReactOS | Contact Us
[static]
Check if a coordinate wrap mode is supported for the texture target.
Definition at line 48 of file texparam.c.
Referenced by set_tex_parameteri().
{ const struct gl_extensions * const e = & ctx->Extensions; if (wrap == GL_CLAMP || wrap == GL_CLAMP_TO_EDGE || (wrap == GL_CLAMP_TO_BORDER && e->ARB_texture_border_clamp)) { /* any texture target */ return GL_TRUE; } else if (target != GL_TEXTURE_RECTANGLE_NV && (wrap == GL_REPEAT || (wrap == GL_MIRRORED_REPEAT && e->ARB_texture_mirrored_repeat) || (wrap == GL_MIRROR_CLAMP_EXT && (e->ATI_texture_mirror_once || e->EXT_texture_mirror_clamp)) || (wrap == GL_MIRROR_CLAMP_TO_EDGE_EXT && (e->ATI_texture_mirror_once || e->EXT_texture_mirror_clamp)) || (wrap == GL_MIRROR_CLAMP_TO_BORDER_EXT && (e->EXT_texture_mirror_clamp)))) { /* non-rectangle texture */ return GL_TRUE; } _mesa_error( ctx, GL_INVALID_VALUE, "glTexParameter(param)" ); return GL_FALSE; }