• Home
  • Raw
  • Download

Lines Matching refs:c

33     ogles_context_t* c, int tmu, GLuint texture, const sp<EGLTextureObject>& tex);
36 void generateMipmap(ogles_context_t* c, GLint level);
45 void ogles_init_texture(ogles_context_t* c) in ogles_init_texture() argument
47 c->textures.packAlignment = 4; in ogles_init_texture()
48 c->textures.unpackAlignment = 4; in ogles_init_texture()
51 c->textures.defaultTexture = new EGLTextureObject(); in ogles_init_texture()
52 c->textures.defaultTexture->incStrong(c); in ogles_init_texture()
56 bindTextureTmu(c, i, 0, c->textures.defaultTexture); in ogles_init_texture()
57 memset(c->current.texture[i].v, 0, sizeof(vec4_t)); in ogles_init_texture()
58 c->current.texture[i].Q = 0x10000; in ogles_init_texture()
62 void ogles_uninit_texture(ogles_context_t* c) in ogles_uninit_texture() argument
64 if (c->textures.ggl) in ogles_uninit_texture()
65 gglUninit(c->textures.ggl); in ogles_uninit_texture()
66 c->textures.defaultTexture->decStrong(c); in ogles_uninit_texture()
68 if (c->textures.tmu[i].texture) in ogles_uninit_texture()
69 c->textures.tmu[i].texture->decStrong(c); in ogles_uninit_texture()
74 void validate_tmu(ogles_context_t* c, int i) in validate_tmu() argument
76 texture_unit_t& u(c->textures.tmu[i]); in validate_tmu()
79 c->rasterizer.procs.activeTexture(c, i); in validate_tmu()
80 c->rasterizer.procs.bindTexture(c, &(u.texture->surface)); in validate_tmu()
81 c->rasterizer.procs.texGeni(c, GGL_S, in validate_tmu()
83 c->rasterizer.procs.texGeni(c, GGL_T, in validate_tmu()
85 c->rasterizer.procs.texParameteri(c, GGL_TEXTURE_2D, in validate_tmu()
87 c->rasterizer.procs.texParameteri(c, GGL_TEXTURE_2D, in validate_tmu()
89 c->rasterizer.procs.texParameteri(c, GGL_TEXTURE_2D, in validate_tmu()
91 c->rasterizer.procs.texParameteri(c, GGL_TEXTURE_2D, in validate_tmu()
96 c->rasterizer.procs.disable(c, GGL_TEXTURE_2D); in validate_tmu()
101 void ogles_validate_texture(ogles_context_t* c) in ogles_validate_texture() argument
104 if (c->rasterizer.state.texture[i].enable) in ogles_validate_texture()
105 validate_tmu(c, i); in ogles_validate_texture()
107 c->rasterizer.procs.activeTexture(c, c->textures.active); in ogles_validate_texture()
111 void invalidate_texture(ogles_context_t* c, int tmu, uint8_t flags = 0xFF) { in invalidate_texture() argument
112 c->textures.tmu[tmu].dirty = flags; in invalidate_texture()
123 void ogles_lock_textures(ogles_context_t* c) in ogles_lock_textures() argument
126 if (c->rasterizer.state.texture[i].enable) { in ogles_lock_textures()
127 texture_unit_t& u(c->textures.tmu[i]); in ogles_lock_textures()
130 c->rasterizer.procs.activeTexture(c, i); in ogles_lock_textures()
145 c->rasterizer.procs.bindTexture(c, &(u.texture->surface)); in ogles_lock_textures()
151 void ogles_unlock_textures(ogles_context_t* c) in ogles_unlock_textures() argument
154 if (c->rasterizer.state.texture[i].enable) { in ogles_unlock_textures()
155 texture_unit_t& u(c->textures.tmu[i]); in ogles_unlock_textures()
158 c->rasterizer.procs.activeTexture(c, i); in ogles_unlock_textures()
168 c->rasterizer.procs.bindTexture(c, &(u.texture->surface)); in ogles_unlock_textures()
172 c->rasterizer.procs.activeTexture(c, c->textures.active); in ogles_unlock_textures()
222 static GLenum validFormatType(ogles_context_t* c, GLenum format, GLenum type) in validFormatType() argument
240 ogles_error(c, error); in validFormatType()
247 GGLContext* getRasterizer(ogles_context_t* c) in getRasterizer() argument
249 GGLContext* ggl = c->textures.ggl; in getRasterizer()
257 c->textures.ggl = ggl; in getRasterizer()
270 ogles_context_t* c, in copyPixels() argument
285 const GGLFormat& pixelFormat(c->rasterizer.formats[src.format]); in copyPixels()
292 GGLContext* ggl = getRasterizer(c); in copyPixels()
308 sp<EGLTextureObject> getAndBindActiveTextureObject(ogles_context_t* c) in getAndBindActiveTextureObject() argument
311 const int active = c->textures.active; in getAndBindActiveTextureObject()
312 const GLuint name = c->textures.tmu[active].name; in getAndBindActiveTextureObject()
315 texture_unit_t& u(c->textures.tmu[active]); in getAndBindActiveTextureObject()
317 u.texture->decStrong(c); in getAndBindActiveTextureObject()
323 tex = c->textures.defaultTexture; in getAndBindActiveTextureObject()
325 if (c->textures.tmu[i].texture == tex.get()) in getAndBindActiveTextureObject()
326 invalidate_texture(c, i); in getAndBindActiveTextureObject()
330 tex = c->surfaceManager->replaceTexture(name); in getAndBindActiveTextureObject()
336 u.texture->incStrong(c); in getAndBindActiveTextureObject()
338 invalidate_texture(c, active); in getAndBindActiveTextureObject()
343 ogles_context_t* c, int tmu, GLuint texture, const sp<EGLTextureObject>& tex) in bindTextureTmu() argument
345 if (tex.get() == c->textures.tmu[tmu].texture) in bindTextureTmu()
349 texture_unit_t& u(c->textures.tmu[tmu]); in bindTextureTmu()
351 u.texture->decStrong(c); in bindTextureTmu()
356 u.texture->incStrong(c); in bindTextureTmu()
358 invalidate_texture(c, tmu); in bindTextureTmu()
361 int createTextureSurface(ogles_context_t* c, in createTextureSurface() argument
367 const int active = c->textures.active; in createTextureSurface()
368 const GLuint name = c->textures.tmu[active].name; in createTextureSurface()
377 const GGLFormat& pixelFormat(c->rasterizer.formats[formatIdx]); in createTextureSurface()
378 const int32_t align = c->textures.unpackAlignment-1; in createTextureSurface()
384 const int active = c->textures.active; in createTextureSurface()
385 EGLTextureObject* tex = c->textures.tmu[active].texture; in createTextureSurface()
396 sp<EGLTextureObject> tex = getAndBindActiveTextureObject(c); in createTextureSurface()
582 void set_depth_and_fog(ogles_context_t* c, GGLfixed z) in set_depth_and_fog() argument
584 const uint32_t enables = c->rasterizer.state.enables; in set_depth_and_fog()
589 GGLfixed n = gglFloatToFixed(c->transforms.vpt.zNear); in set_depth_and_fog()
590 GGLfixed f = gglFloatToFixed(c->transforms.vpt.zFar); in set_depth_and_fog()
596 iterators[0] = c->fog.fog(c, Zw); in set_depth_and_fog()
597 c->rasterizer.procs.fogGrad3xv(c, iterators); in set_depth_and_fog()
605 c->rasterizer.procs.zGrad3xv(c, iterators); in set_depth_and_fog()
615 extern status_t buildAPyramid(ogles_context_t* c, EGLTextureObject* tex);
617 void generateMipmap(ogles_context_t* c, GLint level) in generateMipmap() argument
620 const int active = c->textures.active; in generateMipmap()
621 EGLTextureObject* tex = c->textures.tmu[active].texture; in generateMipmap()
623 if (buildAPyramid(c, tex) != NO_ERROR) { in generateMipmap()
624 ogles_error(c, GL_OUT_OF_MEMORY); in generateMipmap()
633 GLenum target, GLenum pname, GLfixed param, ogles_context_t* c) in texParameterx() argument
636 ogles_error(c, GL_INVALID_ENUM); in texParameterx()
640 EGLTextureObject* textureObject = c->textures.tmu[c->textures.active].texture; in texParameterx()
683 ogles_error(c, GL_INVALID_ENUM); in texParameterx()
686 invalidate_texture(c, c->textures.active); in texParameterx()
692 ogles_context_t* c) in drawTexxOESImp() argument
694 ogles_lock_textures(c); in drawTexxOESImp()
696 const GGLSurface& cbSurface = c->rasterizer.state.buffers.color.s; in drawTexxOESImp()
703 if (!c->rasterizer.state.texture[i].enable) in drawTexxOESImp()
707 texture_unit_t& u(c->textures.tmu[i]); in drawTexxOESImp()
710 validate_tmu(c, i); in drawTexxOESImp()
712 c->rasterizer.procs.texParameteri(c, in drawTexxOESImp()
714 c->rasterizer.procs.texParameteri(c, in drawTexxOESImp()
737 c->rasterizer.procs.texCoordGradScale8xv(c, i, texcoords); in drawTexxOESImp()
740 const uint32_t enables = c->rasterizer.state.enables; in drawTexxOESImp()
742 set_depth_and_fog(c, z); in drawTexxOESImp()
744 c->rasterizer.procs.activeTexture(c, c->textures.active); in drawTexxOESImp()
745 c->rasterizer.procs.color4xv(c, c->currentColorClamped.v); in drawTexxOESImp()
746 c->rasterizer.procs.disable(c, GGL_W_LERP); in drawTexxOESImp()
747 c->rasterizer.procs.disable(c, GGL_AA); in drawTexxOESImp()
748 c->rasterizer.procs.shadeModel(c, GL_FLAT); in drawTexxOESImp()
749 c->rasterizer.procs.recti(c, in drawTexxOESImp()
755 ogles_unlock_textures(c); in drawTexxOESImp()
759 ogles_context_t* c) in drawTexxOES() argument
765 drawTexxOESImp(x, y, z, w, h, c); in drawTexxOES()
768 static void drawTexiOES(GLint x, GLint y, GLint z, GLint w, GLint h, ogles_context_t* c) in drawTexiOES() argument
775 if (ggl_likely(c->rasterizer.state.enabled_tmu == 1)) { in drawTexiOES()
777 texture_unit_t& u(c->textures.tmu[tmu]); in drawTexiOES()
786 c->rasterizer.procs.activeTexture(c, tmu); in drawTexiOES()
787 c->rasterizer.procs.bindTexture(c, &(u.texture->surface)); in drawTexiOES()
788 c->rasterizer.procs.texParameteri(c, GGL_TEXTURE_2D, in drawTexiOES()
790 c->rasterizer.procs.texParameteri(c, GGL_TEXTURE_2D, in drawTexiOES()
793 c->rasterizer.procs.texGeni(c, GGL_S, in drawTexiOES()
795 c->rasterizer.procs.texGeni(c, GGL_T, in drawTexiOES()
798 c->rasterizer.procs.activeTexture(c, c->textures.active); in drawTexiOES()
800 const GGLSurface& cbSurface = c->rasterizer.state.buffers.color.s; in drawTexiOES()
816 ogles_lock_textures(c); in drawTexiOES()
818 c->rasterizer.procs.texCoord2i(c, s0, t0); in drawTexiOES()
819 const uint32_t enables = c->rasterizer.state.enables; in drawTexiOES()
821 set_depth_and_fog(c, gglIntToFixed(z)); in drawTexiOES()
823 c->rasterizer.procs.color4xv(c, c->currentColorClamped.v); in drawTexiOES()
824 c->rasterizer.procs.disable(c, GGL_W_LERP); in drawTexiOES()
825 c->rasterizer.procs.disable(c, GGL_AA); in drawTexiOES()
826 c->rasterizer.procs.shadeModel(c, GL_FLAT); in drawTexiOES()
827 c->rasterizer.procs.recti(c, x, y, x+w, y+h); in drawTexiOES()
829 ogles_unlock_textures(c); in drawTexiOES()
839 c); in drawTexiOES()
856 ogles_context_t* c = ogles_context_t::get(); in glActiveTexture() local
858 ogles_error(c, GL_INVALID_ENUM); in glActiveTexture()
861 c->textures.active = texture - GL_TEXTURE0; in glActiveTexture()
862 c->rasterizer.procs.activeTexture(c, c->textures.active); in glActiveTexture()
867 ogles_context_t* c = ogles_context_t::get(); in glBindTexture() local
869 ogles_error(c, GL_INVALID_ENUM); in glBindTexture()
877 tex = c->textures.defaultTexture; in glBindTexture()
879 tex = c->surfaceManager->texture(texture); in glBindTexture()
881 tex = c->surfaceManager->createTexture(texture); in glBindTexture()
883 ogles_error(c, GL_OUT_OF_MEMORY); in glBindTexture()
888 bindTextureTmu(c, c->textures.active, texture, tex); in glBindTexture()
893 ogles_context_t* c = ogles_context_t::get(); in glGenTextures() local
895 ogles_error(c, GL_INVALID_VALUE); in glGenTextures()
899 c->surfaceManager->getToken(n, textures); in glGenTextures()
904 ogles_context_t* c = ogles_context_t::get(); in glDeleteTextures() local
906 ogles_error(c, GL_INVALID_VALUE); in glDeleteTextures()
912 if (c->textures.tmu[t].name == 0) in glDeleteTextures()
915 if (textures[i] && (textures[i] == c->textures.tmu[t].name)) { in glDeleteTextures()
917 sp<EGLTextureObject> tex(c->textures.defaultTexture); in glDeleteTextures()
918 bindTextureTmu(c, t, 0, tex); in glDeleteTextures()
922 c->surfaceManager->deleteTextures(n, textures); in glDeleteTextures()
923 c->surfaceManager->recycleTokens(n, textures); in glDeleteTextures()
929 ogles_context_t* c = ogles_context_t::get(); in glMultiTexCoord4f() local
931 ogles_error(c, GL_INVALID_ENUM); in glMultiTexCoord4f()
935 c->current.texture[tmu].S = gglFloatToFixed(s); in glMultiTexCoord4f()
936 c->current.texture[tmu].T = gglFloatToFixed(t); in glMultiTexCoord4f()
937 c->current.texture[tmu].R = gglFloatToFixed(r); in glMultiTexCoord4f()
938 c->current.texture[tmu].Q = gglFloatToFixed(q); in glMultiTexCoord4f()
944 ogles_context_t* c = ogles_context_t::get(); in glMultiTexCoord4x() local
946 ogles_error(c, GL_INVALID_ENUM); in glMultiTexCoord4x()
950 c->current.texture[tmu].S = s; in glMultiTexCoord4x()
951 c->current.texture[tmu].T = t; in glMultiTexCoord4x()
952 c->current.texture[tmu].R = r; in glMultiTexCoord4x()
953 c->current.texture[tmu].Q = q; in glMultiTexCoord4x()
958 ogles_context_t* c = ogles_context_t::get(); in glPixelStorei() local
960 ogles_error(c, GL_INVALID_ENUM); in glPixelStorei()
964 ogles_error(c, GL_INVALID_VALUE); in glPixelStorei()
968 c->textures.packAlignment = param; in glPixelStorei()
970 c->textures.unpackAlignment = param; in glPixelStorei()
975 ogles_context_t* c = ogles_context_t::get(); in glTexEnvf() local
976 c->rasterizer.procs.texEnvi(c, target, pname, GLint(param)); in glTexEnvf()
982 ogles_context_t* c = ogles_context_t::get(); in glTexEnvfv() local
984 c->rasterizer.procs.texEnvi(c, target, pname, GLint(*params)); in glTexEnvfv()
991 c->rasterizer.procs.texEnvxv(c, target, pname, fixed); in glTexEnvfv()
994 ogles_error(c, GL_INVALID_ENUM); in glTexEnvfv()
999 ogles_context_t* c = ogles_context_t::get(); in glTexEnvx() local
1000 c->rasterizer.procs.texEnvi(c, target, pname, param); in glTexEnvx()
1006 ogles_context_t* c = ogles_context_t::get(); in glTexEnvxv() local
1007 c->rasterizer.procs.texEnvxv(c, target, pname, params); in glTexEnvxv()
1013 ogles_context_t* c = ogles_context_t::get(); in glTexParameteriv() local
1015 ogles_error(c, GL_INVALID_ENUM); in glTexParameteriv()
1019 EGLTextureObject* textureObject = c->textures.tmu[c->textures.active].texture; in glTexParameteriv()
1025 texParameterx(target, pname, GLfixed(params[0]), c); in glTexParameteriv()
1033 ogles_context_t* c = ogles_context_t::get(); in glTexParameterf() local
1034 texParameterx(target, pname, GLfixed(param), c); in glTexParameterf()
1040 ogles_context_t* c = ogles_context_t::get(); in glTexParameterx() local
1041 texParameterx(target, pname, param, c); in glTexParameterx()
1047 ogles_context_t* c = ogles_context_t::get(); in glTexParameteri() local
1048 texParameterx(target, pname, GLfixed(param), c); in glTexParameteri()
1061 ogles_context_t* c = ogles_context_t::get(); in glCompressedTexImage2D() local
1063 ogles_error(c, GL_INVALID_ENUM); in glCompressedTexImage2D()
1067 ogles_error(c, GL_INVALID_VALUE); in glCompressedTexImage2D()
1108 ogles_error(c, GL_INVALID_ENUM); in glCompressedTexImage2D()
1124 ogles_error(c, GL_INVALID_VALUE); in glCompressedTexImage2D()
1127 int error = createTextureSurface(c, &surface, &size, in glCompressedTexImage2D()
1130 ogles_error(c, error); in glCompressedTexImage2D()
1137 ogles_error(c, GL_INVALID_OPERATION); in glCompressedTexImage2D()
1147 ogles_error(c, GL_INVALID_VALUE); in glCompressedTexImage2D()
1154 int error = createTextureSurface(c, &surface, &size, in glCompressedTexImage2D()
1157 ogles_error(c, error); in glCompressedTexImage2D()
1171 ogles_context_t* c = ogles_context_t::get(); in glTexImage2D() local
1173 ogles_error(c, GL_INVALID_ENUM); in glTexImage2D()
1177 ogles_error(c, GL_INVALID_VALUE); in glTexImage2D()
1181 ogles_error(c, GL_INVALID_OPERATION); in glTexImage2D()
1184 if (validFormatType(c, format, type)) { in glTexImage2D()
1190 int error = createTextureSurface(c, &surface, &size, in glTexImage2D()
1193 ogles_error(c, error); in glTexImage2D()
1199 const GGLFormat& pixelFormat(c->rasterizer.formats[formatIdx]); in glTexImage2D()
1200 const int32_t align = c->textures.unpackAlignment-1; in glTexImage2D()
1214 int err = copyPixels(c, *surface, 0, 0, userSurface, 0, 0, width, height); in glTexImage2D()
1216 ogles_error(c, err); in glTexImage2D()
1219 generateMipmap(c, level); in glTexImage2D()
1231 ogles_context_t* c = ogles_context_t::get(); in glCompressedTexSubImage2D() local
1232 ogles_error(c, GL_INVALID_ENUM); in glCompressedTexSubImage2D()
1240 ogles_context_t* c = ogles_context_t::get(); in glTexSubImage2D() local
1242 ogles_error(c, GL_INVALID_ENUM); in glTexSubImage2D()
1246 ogles_error(c, GL_INVALID_VALUE); in glTexSubImage2D()
1249 if (validFormatType(c, format, type)) { in glTexSubImage2D()
1254 const int active = c->textures.active; in glTexSubImage2D()
1255 EGLTextureObject* tex = c->textures.tmu[active].texture; in glTexSubImage2D()
1259 ogles_error(c, GL_INVALID_OPERATION); in glTexSubImage2D()
1264 ogles_error(c, GL_INVALID_OPERATION); in glTexSubImage2D()
1269 ogles_error(c, GL_INVALID_VALUE); in glTexSubImage2D()
1279 ogles_error(c, GL_INVALID_OPERATION); in glTexSubImage2D()
1283 const GGLFormat& pixelFormat(c->rasterizer.formats[formatIdx]); in glTexSubImage2D()
1284 const int32_t align = c->textures.unpackAlignment-1; in glTexSubImage2D()
1297 int err = copyPixels(c, in glTexSubImage2D()
1301 ogles_error(c, err); in glTexSubImage2D()
1305 generateMipmap(c, level); in glTexSubImage2D()
1318 ogles_context_t* c = ogles_context_t::get(); in glCopyTexImage2D() local
1320 ogles_error(c, GL_INVALID_ENUM); in glCopyTexImage2D()
1324 ogles_error(c, GL_INVALID_ENUM); in glCopyTexImage2D()
1328 ogles_error(c, GL_INVALID_VALUE); in glCopyTexImage2D()
1334 const GGLSurface& cbSurface = c->rasterizer.state.buffers.color.s; in glCopyTexImage2D()
1378 ogles_error(c, GL_INVALID_ENUM); in glCopyTexImage2D()
1385 int error = createTextureSurface(c, &surface, &size, in glCopyTexImage2D()
1388 ogles_error(c, error); in glCopyTexImage2D()
1410 int err = copyPixels(c, in glCopyTexImage2D()
1414 ogles_error(c, err); in glCopyTexImage2D()
1417 generateMipmap(c, level); in glCopyTexImage2D()
1424 ogles_context_t* c = ogles_context_t::get(); in glCopyTexSubImage2D() local
1426 ogles_error(c, GL_INVALID_ENUM); in glCopyTexSubImage2D()
1430 ogles_error(c, GL_INVALID_VALUE); in glCopyTexSubImage2D()
1438 const int active = c->textures.active; in glCopyTexSubImage2D()
1439 EGLTextureObject* tex = c->textures.tmu[active].texture; in glCopyTexSubImage2D()
1443 ogles_error(c, GL_INVALID_OPERATION); in glCopyTexSubImage2D()
1448 ogles_error(c, GL_INVALID_VALUE); in glCopyTexSubImage2D()
1457 const GGLSurface& cbSurface = c->rasterizer.state.buffers.color.s; in glCopyTexSubImage2D()
1471 int err = copyPixels(c, in glCopyTexSubImage2D()
1475 ogles_error(c, err); in glCopyTexSubImage2D()
1479 generateMipmap(c, level); in glCopyTexSubImage2D()
1486 ogles_context_t* c = ogles_context_t::get(); in glReadPixels() local
1488 ogles_error(c, GL_INVALID_ENUM); in glReadPixels()
1492 ogles_error(c, GL_INVALID_ENUM); in glReadPixels()
1496 ogles_error(c, GL_INVALID_VALUE); in glReadPixels()
1500 ogles_error(c, GL_INVALID_VALUE); in glReadPixels()
1510 ogles_error(c, GL_INVALID_OPERATION); in glReadPixels()
1514 const GGLSurface& readSurface = c->rasterizer.state.buffers.read.s; in glReadPixels()
1517 ogles_error(c, GL_INVALID_VALUE); in glReadPixels()
1521 const GGLFormat& pixelFormat(c->rasterizer.formats[formatIdx]); in glReadPixels()
1522 const int32_t align = c->textures.packAlignment-1; in glReadPixels()
1536 GGLContext* ggl = getRasterizer(c); in glReadPixels()
1539 ogles_error(c, GL_OUT_OF_MEMORY); in glReadPixels()
1556 ogles_context_t* c = ogles_context_t::get(); in glDrawTexsvOES() local
1557 drawTexiOES(coords[0], coords[1], coords[2], coords[3], coords[4], c); in glDrawTexsvOES()
1560 ogles_context_t* c = ogles_context_t::get(); in glDrawTexivOES() local
1561 drawTexiOES(coords[0], coords[1], coords[2], coords[3], coords[4], c); in glDrawTexivOES()
1564 ogles_context_t* c = ogles_context_t::get(); in glDrawTexsOES() local
1565 drawTexiOES(x, y, z, w, h, c); in glDrawTexsOES()
1568 ogles_context_t* c = ogles_context_t::get(); in glDrawTexiOES() local
1569 drawTexiOES(x, y, z, w, h, c); in glDrawTexiOES()
1573 ogles_context_t* c = ogles_context_t::get(); in glDrawTexfvOES() local
1580 c); in glDrawTexfvOES()
1583 ogles_context_t* c = ogles_context_t::get(); in glDrawTexxvOES() local
1584 drawTexxOES(coords[0], coords[1], coords[2], coords[3], coords[4], c); in glDrawTexxvOES()
1587 ogles_context_t* c = ogles_context_t::get(); in glDrawTexfOES() local
1591 c); in glDrawTexfOES()
1594 ogles_context_t* c = ogles_context_t::get(); in glDrawTexxOES() local
1595 drawTexxOES(x, y, z, w, h, c); in glDrawTexxOES()
1606 ogles_context_t* c = ogles_context_t::get(); in glEGLImageTargetTexture2DOES() local
1608 ogles_error(c, GL_INVALID_ENUM); in glEGLImageTargetTexture2DOES()
1613 ogles_error(c, GL_INVALID_VALUE); in glEGLImageTargetTexture2DOES()
1619 ogles_error(c, GL_INVALID_VALUE); in glEGLImageTargetTexture2DOES()
1623 ogles_error(c, GL_INVALID_VALUE); in glEGLImageTargetTexture2DOES()
1628 sp<EGLTextureObject> tex = getAndBindActiveTextureObject(c); in glEGLImageTargetTexture2DOES()
1634 ogles_context_t* c = ogles_context_t::get(); in glEGLImageTargetRenderbufferStorageOES() local
1636 ogles_error(c, GL_INVALID_ENUM); in glEGLImageTargetRenderbufferStorageOES()
1641 ogles_error(c, GL_INVALID_VALUE); in glEGLImageTargetRenderbufferStorageOES()
1647 ogles_error(c, GL_INVALID_VALUE); in glEGLImageTargetRenderbufferStorageOES()
1651 ogles_error(c, GL_INVALID_VALUE); in glEGLImageTargetRenderbufferStorageOES()