Lines Matching refs:target

183 void GL2Encoder::s_glBindBuffer(void *self, GLenum target, GLuint id)  in s_glBindBuffer()  argument
187 ctx->m_state->bindBuffer(target, id); in s_glBindBuffer()
189 ctx->m_glBindBuffer_enc(self, target, id); in s_glBindBuffer()
192 void GL2Encoder::s_glBufferData(void * self, GLenum target, GLsizeiptr size, const GLvoid * data, G… in s_glBufferData() argument
195 … SET_ERROR_IF(!(target == GL_ARRAY_BUFFER || target == GL_ELEMENT_ARRAY_BUFFER), GL_INVALID_ENUM); in s_glBufferData()
196 GLuint bufferId = ctx->m_state->getBuffer(target); in s_glBufferData()
201 ctx->m_glBufferData_enc(self, target, size, data, usage); in s_glBufferData()
204 void GL2Encoder::s_glBufferSubData(void * self, GLenum target, GLintptr offset, GLsizeiptr size, co… in s_glBufferSubData() argument
207 … SET_ERROR_IF(!(target == GL_ARRAY_BUFFER || target == GL_ELEMENT_ARRAY_BUFFER), GL_INVALID_ENUM); in s_glBufferSubData()
208 GLuint bufferId = ctx->m_state->getBuffer(target); in s_glBufferSubData()
214 ctx->m_glBufferSubData_enc(self, target, offset, size, data); in s_glBufferSubData()
926 GLenum target; in s_glUniform1i() local
927 if (shared->setSamplerUniform(state->currentProgram(), location, x, &target)) { in s_glUniform1i()
929 if (ctx->updateHostTexture2DBinding(GL_TEXTURE0 + x, target)) { in s_glUniform1i()
1059 void GL2Encoder::s_glBindTexture(void* self, GLenum target, GLuint texture) in s_glBindTexture() argument
1066 SET_ERROR_IF((err = state->bindTexture(target, texture, &firstUse)) != GL_NO_ERROR, err); in s_glBindTexture()
1068 if (target != GL_TEXTURE_2D && target != GL_TEXTURE_EXTERNAL_OES) { in s_glBindTexture()
1069 ctx->m_glBindTexture_enc(ctx, target, texture); in s_glBindTexture()
1075 if (target == GL_TEXTURE_EXTERNAL_OES && firstUse) { in s_glBindTexture()
1084 if (target != priorityTarget) { in s_glBindTexture()
1090 if (target == priorityTarget) { in s_glBindTexture()
1105 GLenum target, GLenum pname, GLfloat* params) in s_glGetTexParameterfv() argument
1110 if (target == GL_TEXTURE_2D || target == GL_TEXTURE_EXTERNAL_OES) { in s_glGetTexParameterfv()
1111 ctx->override2DTextureTarget(target); in s_glGetTexParameterfv()
1115 ctx->m_glGetTexParameterfv_enc(ctx, target, pname, params); in s_glGetTexParameterfv()
1120 GLenum target, GLenum pname, GLint* params) in s_glGetTexParameteriv() argument
1131 if (target == GL_TEXTURE_2D || target == GL_TEXTURE_EXTERNAL_OES) { in s_glGetTexParameteriv()
1132 ctx->override2DTextureTarget(target); in s_glGetTexParameteriv()
1136 ctx->m_glGetTexParameteriv_enc(ctx, target, pname, params); in s_glGetTexParameteriv()
1159 GLenum target, GLenum pname, GLfloat param) in s_glTexParameterf() argument
1164 SET_ERROR_IF((target == GL_TEXTURE_EXTERNAL_OES && in s_glTexParameterf()
1168 if (target == GL_TEXTURE_2D || target == GL_TEXTURE_EXTERNAL_OES) { in s_glTexParameterf()
1169 ctx->override2DTextureTarget(target); in s_glTexParameterf()
1173 ctx->m_glTexParameterf_enc(ctx, target, pname, param); in s_glTexParameterf()
1178 GLenum target, GLenum pname, const GLfloat* params) in s_glTexParameterfv() argument
1183 SET_ERROR_IF((target == GL_TEXTURE_EXTERNAL_OES && in s_glTexParameterfv()
1187 if (target == GL_TEXTURE_2D || target == GL_TEXTURE_EXTERNAL_OES) { in s_glTexParameterfv()
1188 ctx->override2DTextureTarget(target); in s_glTexParameterfv()
1192 ctx->m_glTexParameterfv_enc(ctx, target, pname, params); in s_glTexParameterfv()
1197 GLenum target, GLenum pname, GLint param) in s_glTexParameteri() argument
1202 SET_ERROR_IF((target == GL_TEXTURE_EXTERNAL_OES && in s_glTexParameteri()
1206 if (target == GL_TEXTURE_2D || target == GL_TEXTURE_EXTERNAL_OES) { in s_glTexParameteri()
1207 ctx->override2DTextureTarget(target); in s_glTexParameteri()
1211 ctx->m_glTexParameteri_enc(ctx, target, pname, param); in s_glTexParameteri()
1215 void GL2Encoder::s_glTexImage2D(void* self, GLenum target, GLint level, in s_glTexImage2D() argument
1220 if (target == GL_TEXTURE_2D || target == GL_TEXTURE_EXTERNAL_OES) { in s_glTexImage2D()
1221 ctx->override2DTextureTarget(target); in s_glTexImage2D()
1222 ctx->m_glTexImage2D_enc(ctx, target, level, internalformat, width, in s_glTexImage2D()
1226 ctx->m_glTexImage2D_enc(ctx, target, level, internalformat, width, in s_glTexImage2D()
1233 GLenum target, GLenum pname, const GLint* params) in s_glTexParameteriv() argument
1238 SET_ERROR_IF((target == GL_TEXTURE_EXTERNAL_OES && in s_glTexParameteriv()
1242 if (target == GL_TEXTURE_2D || target == GL_TEXTURE_EXTERNAL_OES) { in s_glTexParameteriv()
1243 ctx->override2DTextureTarget(target); in s_glTexParameteriv()
1247 ctx->m_glTexParameteriv_enc(ctx, target, pname, params); in s_glTexParameteriv()
1251 void GL2Encoder::override2DTextureTarget(GLenum target) in override2DTextureTarget() argument
1253 if ((target == GL_TEXTURE_2D || target == GL_TEXTURE_EXTERNAL_OES) && in override2DTextureTarget()
1254 target != m_state->getPriorityEnabledTarget(GL_TEXTURE_2D)) { in override2DTextureTarget()
1256 m_state->getBoundTexture(target)); in override2DTextureTarget()