Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to correctly handle glSurfaceView.onPause(); and onResume(); #65

Open
lukesleeman opened this issue Aug 2, 2013 · 4 comments
Open

Comments

@lukesleeman
Copy link
Contributor

The docs for GLSurfaceView tell us that we should call onPause() from our activities onPause and onResume() from our activities onResume(). When I do this with my surface view attached to my GPUImage all I can get once the activity has been resumed is a black screen.

I've tried calling requestRender() , setting the image on GPUImage and re-setting the filter, all to no avail.

@yychun1217
Copy link

bro, i am experiencing the same problem. Did you solve it ?

@wakedeer
Copy link

me too. Do you have resolve?

@yiwenlu66
Copy link

+1.
Calling onPause() and onResume() results in black screen after returning to the activity, with repeated warnings in the log:

W/Adreno-ES20: <core_glTexSubImage2D:562>: GL_INVALID_OPERATION
W/GLConsumer: [SurfaceTexture-1-6080-3] bindTextureImage: clearing GL error: 0x502

@hpuhsp
Copy link

hpuhsp commented Nov 2, 2018

the same question~any great master solved it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants