Lines Matching defs:texture
533 static GLuint crStateFramebufferTextureCheck(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level,
561 if (!texture)
575 *tobj = crStateTextureGet(GL_TEXTURE_CUBE_MAP_ARB, texture);
579 *tobj = crStateTextureGet(textarget, texture);
583 *tobj = crStateTextureGet(textarget, texture);
588 *tobj = crStateTextureGet(textarget, texture);
594 CRSTATE_CHECKERR_RET(!*tobj, GL_INVALID_OPERATION, "invalid textarget/texture combo", 0);
607 if ((aap[i])->type!=GL_TEXTURE || (aap[i])->name!=texture || (aap[i])->level!=level)
621 crStateFramebufferTexture1DEXT(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
629 cap = crStateFramebufferTextureCheck(target, attachment, textarget, texture, level, aap, &tobj);
632 if (!texture)
649 aap[i]->name = texture;
655 crStateFramebufferTexture2DEXT(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
663 cap = crStateFramebufferTextureCheck(target, attachment, textarget, texture, level, aap, &tobj);
666 if (!texture)
683 aap[i]->name = texture;
693 crStateFramebufferTexture3DEXT(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset)
701 cap = crStateFramebufferTextureCheck(target, attachment, textarget, texture, level, aap, &tobj);
704 if (!texture)
722 aap[i]->name = texture;
831 CRSTATE_CHECKERR(ap->type!=GL_TEXTURE, GL_INVALID_ENUM, "not a texture");
835 CRSTATE_CHECKERR(ap->type!=GL_TEXTURE, GL_INVALID_ENUM, "not a texture");
839 CRSTATE_CHECKERR(ap->type!=GL_TEXTURE, GL_INVALID_ENUM, "not a texture");
934 crWarning("Unknown texture id %d", pAP->name);