Lines Matching defs:texture
523 GLuint texture, GLint level, GLint layer,
601 _mesa_BindImageTexture_no_error(GLuint unit, GLuint texture, GLint level,
609 if (texture)
610 texObj = _mesa_lookup_texture(ctx, texture);
616 _mesa_BindImageTexture(GLuint unit, GLuint texture, GLint level,
624 if (!validate_bind_image_texture(ctx, unit, texture, level, layer, access,
628 if (texture) {
629 texObj = _mesa_lookup_texture(ctx, texture);
632 _mesa_error(ctx, GL_INVALID_VALUE, "glBindImageTexture(texture)");
639 * "An INVALID_OPERATION error is generated if texture is not the name
640 * of an immutable texture object."
647 * states that glBindImageTexture must accept external texture objects.
661 _mesa_BindImageTextureEXT(GLuint index, GLuint texture, GLint level,
669 if (!validate_bind_image_texture(ctx, index, texture, level, layer, access,
673 if (texture) {
674 texObj = _mesa_lookup_texture(ctx, texture);
677 _mesa_error(ctx, GL_INVALID_VALUE, "glBindImageTextureEXT(texture)");
718 const GLuint texture = textures ? textures[i] : 0;
720 if (texture) {
724 if (!texObj || texObj->Name != texture) {
725 texObj = _mesa_lookup_texture_locked(ctx, texture);
731 * texture object (per binding)."
735 "is not zero or the name of an existing texture "
736 "object)", i, texture);
751 * height, or depth of the level zero texture image of
752 * any texture in <textures> is zero (per binding)."
756 "of the level zero texture image of "
757 "textures[%d]=%u is zero)", i, texture);
769 * format of the level zero texture image of any texture
774 "the level zero texture image of textures[%d]=%u "
777 i, texture);
781 /* Update the texture binding */
786 /* Unbind the texture from the unit */