Lines Matching refs:target

355 void GLEncoder::s_glBindBuffer(void *self, GLenum target, GLuint id)  in s_glBindBuffer()  argument
359 ctx->m_state->bindBuffer(target, id); in s_glBindBuffer()
361 ctx->m_glBindBuffer_enc(self, target, id); in s_glBindBuffer()
364 void GLEncoder::s_glBufferData(void * self, GLenum target, GLsizeiptr size, const GLvoid * data, GL… in s_glBufferData() argument
367 GLuint bufferId = ctx->m_state->getBuffer(target); in s_glBufferData()
372 ctx->m_glBufferData_enc(self, target, size, data, usage); in s_glBufferData()
375 void GLEncoder::s_glBufferSubData(void * self, GLenum target, GLintptr offset, GLsizeiptr size, con… in s_glBufferSubData() argument
378 GLuint bufferId = ctx->m_state->getBuffer(target); in s_glBufferSubData()
384 ctx->m_glBufferSubData_enc(self, target, offset, size, data); in s_glBufferSubData()
657 void GLEncoder::s_glBindTexture(void* self, GLenum target, GLuint texture) in s_glBindTexture() argument
664 if ((err = state->bindTexture(target, texture, &firstUse)) != GL_NO_ERROR) { in s_glBindTexture()
670 if (target != GL_TEXTURE_2D && target != GL_TEXTURE_EXTERNAL_OES) { in s_glBindTexture()
671 ctx->m_glBindTexture_enc(ctx, target, texture); in s_glBindTexture()
677 if (target == GL_TEXTURE_EXTERNAL_OES && firstUse) { in s_glBindTexture()
687 if (target != priorityTarget) { in s_glBindTexture()
693 if (target == priorityTarget) { in s_glBindTexture()
760 GLenum target, GLenum pname, GLfloat* params) in s_glGetTexParameterfv() argument
763 if (target == GL_TEXTURE_2D || target == GL_TEXTURE_EXTERNAL_OES) { in s_glGetTexParameterfv()
764 ctx->override2DTextureTarget(target); in s_glGetTexParameterfv()
768 ctx->m_glGetTexParameterfv_enc(ctx, target, pname, params); in s_glGetTexParameterfv()
773 GLenum target, GLenum pname, GLint* params) in s_glGetTexParameteriv() argument
783 if (target == GL_TEXTURE_2D || target == GL_TEXTURE_EXTERNAL_OES) { in s_glGetTexParameteriv()
784 ctx->override2DTextureTarget(target); in s_glGetTexParameteriv()
788 ctx->m_glGetTexParameteriv_enc(ctx, target, pname, params); in s_glGetTexParameteriv()
795 GLenum target, GLenum pname, GLfixed* params) in s_glGetTexParameterxv() argument
799 if (target == GL_TEXTURE_2D || target == GL_TEXTURE_EXTERNAL_OES) { in s_glGetTexParameterxv()
800 ctx->override2DTextureTarget(target); in s_glGetTexParameterxv()
804 ctx->m_glGetTexParameterxv_enc(ctx, target, pname, params); in s_glGetTexParameterxv()
828 GLenum target, GLenum pname, GLfloat param) in s_glTexParameterf() argument
832 SET_ERROR_IF((target == GL_TEXTURE_EXTERNAL_OES && in s_glTexParameterf()
836 if (target == GL_TEXTURE_2D || target == GL_TEXTURE_EXTERNAL_OES) { in s_glTexParameterf()
837 ctx->override2DTextureTarget(target); in s_glTexParameterf()
841 ctx->m_glTexParameterf_enc(ctx, target, pname, param); in s_glTexParameterf()
846 GLenum target, GLenum pname, const GLfloat* params) in s_glTexParameterfv() argument
850 SET_ERROR_IF((target == GL_TEXTURE_EXTERNAL_OES && in s_glTexParameterfv()
854 if (target == GL_TEXTURE_2D || target == GL_TEXTURE_EXTERNAL_OES) { in s_glTexParameterfv()
855 ctx->override2DTextureTarget(target); in s_glTexParameterfv()
859 ctx->m_glTexParameterfv_enc(ctx, target, pname, params); in s_glTexParameterfv()
864 GLenum target, GLenum pname, GLint param) in s_glTexParameteri() argument
868 SET_ERROR_IF((target == GL_TEXTURE_EXTERNAL_OES && in s_glTexParameteri()
872 if (target == GL_TEXTURE_2D || target == GL_TEXTURE_EXTERNAL_OES) { in s_glTexParameteri()
873 ctx->override2DTextureTarget(target); in s_glTexParameteri()
877 ctx->m_glTexParameteri_enc(ctx, target, pname, param); in s_glTexParameteri()
882 GLenum target, GLenum pname, GLfixed param) in s_glTexParameterx() argument
886 SET_ERROR_IF((target == GL_TEXTURE_EXTERNAL_OES && in s_glTexParameterx()
890 if (target == GL_TEXTURE_2D || target == GL_TEXTURE_EXTERNAL_OES) { in s_glTexParameterx()
891 ctx->override2DTextureTarget(target); in s_glTexParameterx()
895 ctx->m_glTexParameterx_enc(ctx, target, pname, param); in s_glTexParameterx()
900 GLenum target, GLenum pname, const GLint* params) in s_glTexParameteriv() argument
904 SET_ERROR_IF((target == GL_TEXTURE_EXTERNAL_OES && in s_glTexParameteriv()
908 if (target == GL_TEXTURE_2D || target == GL_TEXTURE_EXTERNAL_OES) { in s_glTexParameteriv()
909 ctx->override2DTextureTarget(target); in s_glTexParameteriv()
913 ctx->m_glTexParameteriv_enc(ctx, target, pname, params); in s_glTexParameteriv()
918 GLenum target, GLenum pname, const GLfixed* params) in s_glTexParameterxv() argument
922 SET_ERROR_IF((target == GL_TEXTURE_EXTERNAL_OES && in s_glTexParameterxv()
926 if (target == GL_TEXTURE_2D || target == GL_TEXTURE_EXTERNAL_OES) { in s_glTexParameterxv()
927 ctx->override2DTextureTarget(target); in s_glTexParameterxv()
931 ctx->m_glTexParameterxv_enc(ctx, target, pname, params); in s_glTexParameterxv()
935 void GLEncoder::override2DTextureTarget(GLenum target) in override2DTextureTarget() argument
937 if ((target == GL_TEXTURE_2D || target == GL_TEXTURE_EXTERNAL_OES) && in override2DTextureTarget()
938 target != m_state->getPriorityEnabledTarget(GL_TEXTURE_2D)) { in override2DTextureTarget()
940 m_state->getBoundTexture(target)); in override2DTextureTarget()
974 GLenum target, GLuint framebuffer) { in s_glBindFramebufferOES() argument
978 SET_ERROR_IF((target != GL_FRAMEBUFFER), in s_glBindFramebufferOES()
981 state->bindFramebuffer(target, framebuffer); in s_glBindFramebufferOES()
983 ctx->m_glBindFramebufferOES_enc(self, target, framebuffer); in s_glBindFramebufferOES()
987 GLenum target, GLenum attachment, in s_glFramebufferTexture2DOES() argument
992 state->attachTextureObject(target, attachment, texture); in s_glFramebufferTexture2DOES()
994 ctx->m_glFramebufferTexture2DOES_enc(self, target, attachment, textarget, texture, level); in s_glFramebufferTexture2DOES()
998 GLenum target, GLenum attachment, in s_glFramebufferTexture2DMultisampleIMG() argument
1003 state->attachTextureObject(target, attachment, texture); in s_glFramebufferTexture2DMultisampleIMG()
1005 …ctx->m_glFramebufferTexture2DMultisampleIMG_enc(self, target, attachment, textarget, texture, leve… in s_glFramebufferTexture2DMultisampleIMG()
1009 GLenum target, GLenum attachment, GLenum pname, GLint* params) in s_glGetFramebufferAttachmentParameterivOES() argument
1020 ctx->m_glGetFramebufferAttachmentParameterivOES_enc(self, target, attachment, pname, params); in s_glGetFramebufferAttachmentParameterivOES()