android: GLWallpaperService causing green screen

心不动则不痛 提交于 2019-12-04 17:20:32

try gl.glScale() in your Renderer Code. I also got the same problem and i figured out that my GLView was so much zoomed that i cant see anything. try to reduce scale. My program wo

I fixed this on my Galaxy Nexus by adding

gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);

to onSurfaceCreated in MyRenderer.java.

The example project you linked to had bugs in the rendering code, as others here have pointed out. It has since been deprecated and deleted for maintenance\workload reasons.

However, there's currently some example wallpaper code embedded into the main repository of GLWallpaperService. It's set up as a full Android application so developers can test using that example as needed.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!