Loading opengl/libs/EGL/egl.cpp +2 −9 Original line number Original line Diff line number Diff line Loading @@ -428,19 +428,14 @@ static void(*findProcAddress(const char* name, // ---------------------------------------------------------------------------- // ---------------------------------------------------------------------------- static void gl_no_context() { static int gl_no_context() { tls_t* tls = getTLS(); tls_t* tls = getTLS(); if (tls->logCallWithNoContext == EGL_TRUE) { if (tls->logCallWithNoContext == EGL_TRUE) { tls->logCallWithNoContext = EGL_FALSE; tls->logCallWithNoContext = EGL_FALSE; LOGE("call to OpenGL ES API with no current context " LOGE("call to OpenGL ES API with no current context " "(logged once per thread)"); "(logged once per thread)"); } } } return 0; // Always return GL_INVALID_OPERATION from glGetError() when called from // a thread without a bound context. static GLenum gl_no_context_glGetError() { return GL_INVALID_OPERATION; } } static void early_egl_init(void) static void early_egl_init(void) Loading @@ -454,8 +449,6 @@ static void early_egl_init(void) addr, addr, sizeof(gHooksNoContext)); sizeof(gHooksNoContext)); gHooksNoContext.gl.glGetError = gl_no_context_glGetError; setGlThreadSpecific(&gHooksNoContext); setGlThreadSpecific(&gHooksNoContext); } } Loading opengl/libs/GLES2/gl2.cpp +1 −0 Original line number Original line Diff line number Diff line Loading @@ -58,6 +58,7 @@ using namespace android; "ldr r12, [r12, %[tls]] \n" \ "ldr r12, [r12, %[tls]] \n" \ "cmp r12, #0 \n" \ "cmp r12, #0 \n" \ "ldrne pc, [r12, %[api]] \n" \ "ldrne pc, [r12, %[api]] \n" \ "mov r0, #0 \n" \ "bx lr \n" \ "bx lr \n" \ : \ : \ : [tls] "J"(TLS_SLOT_OPENGL_API*4), \ : [tls] "J"(TLS_SLOT_OPENGL_API*4), \ Loading opengl/libs/GLES_CM/gl.cpp +1 −0 Original line number Original line Diff line number Diff line Loading @@ -114,6 +114,7 @@ GL_API void GL_APIENTRY glWeightPointerOESBounds(GLint size, GLenum type, "ldr r12, [r12, %[tls]] \n" \ "ldr r12, [r12, %[tls]] \n" \ "cmp r12, #0 \n" \ "cmp r12, #0 \n" \ "ldrne pc, [r12, %[api]] \n" \ "ldrne pc, [r12, %[api]] \n" \ "mov r0, #0 \n" \ "bx lr \n" \ "bx lr \n" \ : \ : \ : [tls] "J"(TLS_SLOT_OPENGL_API*4), \ : [tls] "J"(TLS_SLOT_OPENGL_API*4), \ Loading Loading
opengl/libs/EGL/egl.cpp +2 −9 Original line number Original line Diff line number Diff line Loading @@ -428,19 +428,14 @@ static void(*findProcAddress(const char* name, // ---------------------------------------------------------------------------- // ---------------------------------------------------------------------------- static void gl_no_context() { static int gl_no_context() { tls_t* tls = getTLS(); tls_t* tls = getTLS(); if (tls->logCallWithNoContext == EGL_TRUE) { if (tls->logCallWithNoContext == EGL_TRUE) { tls->logCallWithNoContext = EGL_FALSE; tls->logCallWithNoContext = EGL_FALSE; LOGE("call to OpenGL ES API with no current context " LOGE("call to OpenGL ES API with no current context " "(logged once per thread)"); "(logged once per thread)"); } } } return 0; // Always return GL_INVALID_OPERATION from glGetError() when called from // a thread without a bound context. static GLenum gl_no_context_glGetError() { return GL_INVALID_OPERATION; } } static void early_egl_init(void) static void early_egl_init(void) Loading @@ -454,8 +449,6 @@ static void early_egl_init(void) addr, addr, sizeof(gHooksNoContext)); sizeof(gHooksNoContext)); gHooksNoContext.gl.glGetError = gl_no_context_glGetError; setGlThreadSpecific(&gHooksNoContext); setGlThreadSpecific(&gHooksNoContext); } } Loading
opengl/libs/GLES2/gl2.cpp +1 −0 Original line number Original line Diff line number Diff line Loading @@ -58,6 +58,7 @@ using namespace android; "ldr r12, [r12, %[tls]] \n" \ "ldr r12, [r12, %[tls]] \n" \ "cmp r12, #0 \n" \ "cmp r12, #0 \n" \ "ldrne pc, [r12, %[api]] \n" \ "ldrne pc, [r12, %[api]] \n" \ "mov r0, #0 \n" \ "bx lr \n" \ "bx lr \n" \ : \ : \ : [tls] "J"(TLS_SLOT_OPENGL_API*4), \ : [tls] "J"(TLS_SLOT_OPENGL_API*4), \ Loading
opengl/libs/GLES_CM/gl.cpp +1 −0 Original line number Original line Diff line number Diff line Loading @@ -114,6 +114,7 @@ GL_API void GL_APIENTRY glWeightPointerOESBounds(GLint size, GLenum type, "ldr r12, [r12, %[tls]] \n" \ "ldr r12, [r12, %[tls]] \n" \ "cmp r12, #0 \n" \ "cmp r12, #0 \n" \ "ldrne pc, [r12, %[api]] \n" \ "ldrne pc, [r12, %[api]] \n" \ "mov r0, #0 \n" \ "bx lr \n" \ "bx lr \n" \ : \ : \ : [tls] "J"(TLS_SLOT_OPENGL_API*4), \ : [tls] "J"(TLS_SLOT_OPENGL_API*4), \ Loading