My app is using some graphic filter with GLSurfaceView OpenGL API
and I recently found my algorithm depends on shader precision.
Now I want to my app to show the GLSurfaceView only if the device supports
proper shader precision.
but It seems is...I can't use glGetShaderPrecisionFormat until
You don't have to use a GLSurfaceView. You could create your own OpenGL
context, using a 1x1 pbuffer window surface, to be able to call
glGetShaderPrecisionFormat(). Just make sure you don't do this on the UI
thread to not conflict with Android's UI renderer.
On Sun, Jun 16, 2013 at 11:36 PM,
That's a clever trick. I'll try that. Thank you.
2013. 6. 17. 오후 4:01에 Romain Guy romain...@android.com님이 작성:
You don't have to use a GLSurfaceView. You could create your own OpenGL
context, using a 1x1 pbuffer window surface, to be able to call
glGetShaderPrecisionFormat(). Just make sure you
3 matches
Mail list logo