Lines Matching refs:target

184 void GL2Encoder::s_glBindBuffer(void *self, GLenum target, GLuint id)  in s_glBindBuffer()  argument
188 ctx->m_state->bindBuffer(target, id); in s_glBindBuffer()
190 ctx->m_glBindBuffer_enc(self, target, id); in s_glBindBuffer()
193 void GL2Encoder::s_glBufferData(void * self, GLenum target, GLsizeiptr size, const GLvoid * data, G… in s_glBufferData() argument
196 … SET_ERROR_IF(!(target == GL_ARRAY_BUFFER || target == GL_ELEMENT_ARRAY_BUFFER), GL_INVALID_ENUM); in s_glBufferData()
197 GLuint bufferId = ctx->m_state->getBuffer(target); in s_glBufferData()
202 ctx->m_glBufferData_enc(self, target, size, data, usage); in s_glBufferData()
205 void GL2Encoder::s_glBufferSubData(void * self, GLenum target, GLintptr offset, GLsizeiptr size, co… in s_glBufferSubData() argument
208 … SET_ERROR_IF(!(target == GL_ARRAY_BUFFER || target == GL_ELEMENT_ARRAY_BUFFER), GL_INVALID_ENUM); in s_glBufferSubData()
209 GLuint bufferId = ctx->m_state->getBuffer(target); in s_glBufferSubData()
215 ctx->m_glBufferSubData_enc(self, target, offset, size, data); in s_glBufferSubData()
938 GLenum target; in s_glUniform1i() local
939 if (shared->setSamplerUniform(state->currentProgram(), location, x, &target)) { in s_glUniform1i()
941 if (ctx->updateHostTexture2DBinding(GL_TEXTURE0 + x, target)) { in s_glUniform1i()
1071 void GL2Encoder::s_glBindTexture(void* self, GLenum target, GLuint texture) in s_glBindTexture() argument
1078 SET_ERROR_IF((err = state->bindTexture(target, texture, &firstUse)) != GL_NO_ERROR, err); in s_glBindTexture()
1080 if (target != GL_TEXTURE_2D && target != GL_TEXTURE_EXTERNAL_OES) { in s_glBindTexture()
1081 ctx->m_glBindTexture_enc(ctx, target, texture); in s_glBindTexture()
1087 if (target == GL_TEXTURE_EXTERNAL_OES && firstUse) { in s_glBindTexture()
1096 if (target != priorityTarget) { in s_glBindTexture()
1102 if (target == priorityTarget) { in s_glBindTexture()
1117 GLenum target, GLenum pname, GLfloat* params) in s_glGetTexParameterfv() argument
1122 if (target == GL_TEXTURE_2D || target == GL_TEXTURE_EXTERNAL_OES) { in s_glGetTexParameterfv()
1123 ctx->override2DTextureTarget(target); in s_glGetTexParameterfv()
1127 ctx->m_glGetTexParameterfv_enc(ctx, target, pname, params); in s_glGetTexParameterfv()
1132 GLenum target, GLenum pname, GLint* params) in s_glGetTexParameteriv() argument
1143 if (target == GL_TEXTURE_2D || target == GL_TEXTURE_EXTERNAL_OES) { in s_glGetTexParameteriv()
1144 ctx->override2DTextureTarget(target); in s_glGetTexParameteriv()
1148 ctx->m_glGetTexParameteriv_enc(ctx, target, pname, params); in s_glGetTexParameteriv()
1171 GLenum target, GLenum pname, GLfloat param) in s_glTexParameterf() argument
1176 SET_ERROR_IF((target == GL_TEXTURE_EXTERNAL_OES && in s_glTexParameterf()
1180 if (target == GL_TEXTURE_2D || target == GL_TEXTURE_EXTERNAL_OES) { in s_glTexParameterf()
1181 ctx->override2DTextureTarget(target); in s_glTexParameterf()
1185 ctx->m_glTexParameterf_enc(ctx, target, pname, param); in s_glTexParameterf()
1190 GLenum target, GLenum pname, const GLfloat* params) in s_glTexParameterfv() argument
1195 SET_ERROR_IF((target == GL_TEXTURE_EXTERNAL_OES && in s_glTexParameterfv()
1199 if (target == GL_TEXTURE_2D || target == GL_TEXTURE_EXTERNAL_OES) { in s_glTexParameterfv()
1200 ctx->override2DTextureTarget(target); in s_glTexParameterfv()
1204 ctx->m_glTexParameterfv_enc(ctx, target, pname, params); in s_glTexParameterfv()
1209 GLenum target, GLenum pname, GLint param) in s_glTexParameteri() argument
1214 SET_ERROR_IF((target == GL_TEXTURE_EXTERNAL_OES && in s_glTexParameteri()
1218 if (target == GL_TEXTURE_2D || target == GL_TEXTURE_EXTERNAL_OES) { in s_glTexParameteri()
1219 ctx->override2DTextureTarget(target); in s_glTexParameteri()
1223 ctx->m_glTexParameteri_enc(ctx, target, pname, param); in s_glTexParameteri()
1227 void GL2Encoder::s_glTexImage2D(void* self, GLenum target, GLint level, in s_glTexImage2D() argument
1232 if (target == GL_TEXTURE_2D || target == GL_TEXTURE_EXTERNAL_OES) { in s_glTexImage2D()
1233 ctx->override2DTextureTarget(target); in s_glTexImage2D()
1234 ctx->m_glTexImage2D_enc(ctx, target, level, internalformat, width, in s_glTexImage2D()
1238 ctx->m_glTexImage2D_enc(ctx, target, level, internalformat, width, in s_glTexImage2D()
1245 GLenum target, GLenum pname, const GLint* params) in s_glTexParameteriv() argument
1250 SET_ERROR_IF((target == GL_TEXTURE_EXTERNAL_OES && in s_glTexParameteriv()
1254 if (target == GL_TEXTURE_2D || target == GL_TEXTURE_EXTERNAL_OES) { in s_glTexParameteriv()
1255 ctx->override2DTextureTarget(target); in s_glTexParameteriv()
1259 ctx->m_glTexParameteriv_enc(ctx, target, pname, params); in s_glTexParameteriv()
1263 void GL2Encoder::override2DTextureTarget(GLenum target) in override2DTextureTarget() argument
1265 if ((target == GL_TEXTURE_2D || target == GL_TEXTURE_EXTERNAL_OES) && in override2DTextureTarget()
1266 target != m_state->getPriorityEnabledTarget(GL_TEXTURE_2D)) { in override2DTextureTarget()
1268 m_state->getBoundTexture(target)); in override2DTextureTarget()