Lines Matching refs:target
354 void GLEncoder::s_glBindBuffer(void *self, GLenum target, GLuint id) in s_glBindBuffer() argument
358 ctx->m_state->bindBuffer(target, id); in s_glBindBuffer()
360 ctx->m_glBindBuffer_enc(self, target, id); in s_glBindBuffer()
363 void GLEncoder::s_glBufferData(void * self, GLenum target, GLsizeiptr size, const GLvoid * data, GL… in s_glBufferData() argument
366 GLuint bufferId = ctx->m_state->getBuffer(target); in s_glBufferData()
371 ctx->m_glBufferData_enc(self, target, size, data, usage); in s_glBufferData()
374 void GLEncoder::s_glBufferSubData(void * self, GLenum target, GLintptr offset, GLsizeiptr size, con… in s_glBufferSubData() argument
377 GLuint bufferId = ctx->m_state->getBuffer(target); in s_glBufferSubData()
383 ctx->m_glBufferSubData_enc(self, target, offset, size, data); in s_glBufferSubData()
617 void GLEncoder::s_glBindTexture(void* self, GLenum target, GLuint texture) in s_glBindTexture() argument
624 if ((err = state->bindTexture(target, texture, &firstUse)) != GL_NO_ERROR) { in s_glBindTexture()
630 if (target != GL_TEXTURE_2D && target != GL_TEXTURE_EXTERNAL_OES) { in s_glBindTexture()
631 ctx->m_glBindTexture_enc(ctx, target, texture); in s_glBindTexture()
637 if (target == GL_TEXTURE_EXTERNAL_OES && firstUse) { in s_glBindTexture()
647 if (target != priorityTarget) { in s_glBindTexture()
653 if (target == priorityTarget) { in s_glBindTexture()
720 GLenum target, GLenum pname, GLfloat* params) in s_glGetTexParameterfv() argument
725 if (target == GL_TEXTURE_2D || target == GL_TEXTURE_EXTERNAL_OES) { in s_glGetTexParameterfv()
726 ctx->override2DTextureTarget(target); in s_glGetTexParameterfv()
730 ctx->m_glGetTexParameterfv_enc(ctx, target, pname, params); in s_glGetTexParameterfv()
735 GLenum target, GLenum pname, GLint* params) in s_glGetTexParameteriv() argument
746 if (target == GL_TEXTURE_2D || target == GL_TEXTURE_EXTERNAL_OES) { in s_glGetTexParameteriv()
747 ctx->override2DTextureTarget(target); in s_glGetTexParameteriv()
751 ctx->m_glGetTexParameteriv_enc(ctx, target, pname, params); in s_glGetTexParameteriv()
758 GLenum target, GLenum pname, GLfixed* params) in s_glGetTexParameterxv() argument
763 if (target == GL_TEXTURE_2D || target == GL_TEXTURE_EXTERNAL_OES) { in s_glGetTexParameterxv()
764 ctx->override2DTextureTarget(target); in s_glGetTexParameterxv()
768 ctx->m_glGetTexParameterxv_enc(ctx, target, pname, params); in s_glGetTexParameterxv()
792 GLenum target, GLenum pname, GLfloat param) in s_glTexParameterf() argument
797 SET_ERROR_IF((target == GL_TEXTURE_EXTERNAL_OES && in s_glTexParameterf()
801 if (target == GL_TEXTURE_2D || target == GL_TEXTURE_EXTERNAL_OES) { in s_glTexParameterf()
802 ctx->override2DTextureTarget(target); in s_glTexParameterf()
806 ctx->m_glTexParameterf_enc(ctx, target, pname, param); in s_glTexParameterf()
811 GLenum target, GLenum pname, const GLfloat* params) in s_glTexParameterfv() argument
816 SET_ERROR_IF((target == GL_TEXTURE_EXTERNAL_OES && in s_glTexParameterfv()
820 if (target == GL_TEXTURE_2D || target == GL_TEXTURE_EXTERNAL_OES) { in s_glTexParameterfv()
821 ctx->override2DTextureTarget(target); in s_glTexParameterfv()
825 ctx->m_glTexParameterfv_enc(ctx, target, pname, params); in s_glTexParameterfv()
830 GLenum target, GLenum pname, GLint param) in s_glTexParameteri() argument
835 SET_ERROR_IF((target == GL_TEXTURE_EXTERNAL_OES && in s_glTexParameteri()
839 if (target == GL_TEXTURE_2D || target == GL_TEXTURE_EXTERNAL_OES) { in s_glTexParameteri()
840 ctx->override2DTextureTarget(target); in s_glTexParameteri()
844 ctx->m_glTexParameteri_enc(ctx, target, pname, param); in s_glTexParameteri()
849 GLenum target, GLenum pname, GLfixed param) in s_glTexParameterx() argument
854 SET_ERROR_IF((target == GL_TEXTURE_EXTERNAL_OES && in s_glTexParameterx()
858 if (target == GL_TEXTURE_2D || target == GL_TEXTURE_EXTERNAL_OES) { in s_glTexParameterx()
859 ctx->override2DTextureTarget(target); in s_glTexParameterx()
863 ctx->m_glTexParameterx_enc(ctx, target, pname, param); in s_glTexParameterx()
868 GLenum target, GLenum pname, const GLint* params) in s_glTexParameteriv() argument
873 SET_ERROR_IF((target == GL_TEXTURE_EXTERNAL_OES && in s_glTexParameteriv()
877 if (target == GL_TEXTURE_2D || target == GL_TEXTURE_EXTERNAL_OES) { in s_glTexParameteriv()
878 ctx->override2DTextureTarget(target); in s_glTexParameteriv()
882 ctx->m_glTexParameteriv_enc(ctx, target, pname, params); in s_glTexParameteriv()
887 GLenum target, GLenum pname, const GLfixed* params) in s_glTexParameterxv() argument
892 SET_ERROR_IF((target == GL_TEXTURE_EXTERNAL_OES && in s_glTexParameterxv()
896 if (target == GL_TEXTURE_2D || target == GL_TEXTURE_EXTERNAL_OES) { in s_glTexParameterxv()
897 ctx->override2DTextureTarget(target); in s_glTexParameterxv()
901 ctx->m_glTexParameterxv_enc(ctx, target, pname, params); in s_glTexParameterxv()
905 void GLEncoder::override2DTextureTarget(GLenum target) in override2DTextureTarget() argument
907 if ((target == GL_TEXTURE_2D || target == GL_TEXTURE_EXTERNAL_OES) && in override2DTextureTarget()
908 target != m_state->getPriorityEnabledTarget(GL_TEXTURE_2D)) { in override2DTextureTarget()
910 m_state->getBoundTexture(target)); in override2DTextureTarget()