Lines Matching refs:texunit
225 * Get the texture object for given target and texunit
231 GLuint texunit, bool allowProxyTarget,
241 if (texunit >= ctx->Const.MaxCombinedTextureImageUnits) {
243 "%s(texunit=%d)", caller, texunit);
247 texUnit = _mesa_get_tex_unit(ctx, texunit);
1783 * \param texunit texture unit.
1787 GLenum texunit, bool no_error, const char *caller)
1795 bind_texture_object(ctx, texunit, newTexObj);
1822 _mesa_BindMultiTextureEXT(GLenum texunit, GLenum target, GLuint texture)
1826 unsigned unit = texunit - GL_TEXTURE0;
1828 if (texunit < GL_TEXTURE0 || unit >= _mesa_max_tex_unit(ctx)) {
1829 _mesa_error(ctx, GL_INVALID_ENUM, "glBindMultiTextureEXT(texunit=%s)",
1830 _mesa_enum_to_string(texunit));
1836 _mesa_enum_to_string(texunit), (GLint) texture);