-
Notifications
You must be signed in to change notification settings - Fork 212
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
Cannot create GL program: 0 #97
Comments
The drawBitmap cannot be called in another threat but only in the thread in onGLDraw |
Well thats a problem, i cant use the main thread for network stuff |
Then the bitmap should be ready from other thread before it is passed to this TextureView |
Its based from a inputstream from a website... thank you for the fast Response! |
What view do you use? GlSurfaceView or GlTextureView |
self made view for now |
can you provide a methode for updating the picture? because i tried Thread.sleep in a while loop and it crashes |
Maybe you need to learn something about Android UI thread or Handler. It is a little hard to explain Thread.sleep should not be called here. |
can i somehow get the GL Thread? |
okay so i get the errmor message again, but this time from the same thread
|
Emmm.. You can try to get your bitmap outside your MyGLView and then set the Bitmap to MyGLView. After the bitmap set, you can call MyGLView.requestRender to trigger onGLDraw. The reqeustRender is inherited from GLSurfaceView. |
Can you provide a example? Would be great |
And in MjpegView
|
Thanks alot, I will try it later |
How can i prevent it that it shows over everything? |
okay it doesnt work very well, it crashes after some Time and the latency is crazy high |
Can you reused the first Bitmap to avoid creating Bitmap object continuously? And you can use canvasGL.invalidateContent() to notify the Bitmap updated. |
I dont know how i reuse a bitmap |
Hey there i get Cannot create GL program: 0
at drawBitmap
Code:
The text was updated successfully, but these errors were encountered: