That's a clever trick. I'll try that. Thank you. 2013. 6. 17. 오후 4:01에 "Romain Guy" <[email protected]>님이 작성:
> 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, NoraBora <[email protected]> wrote: > >> 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 >> GLSurfaceView.onSurfaceCreated. >> Adding GLSurfaceView and change visibility to gone, invisible doesn't >> help. >> >> Is there any way around? or this is just impossible? >> >> -- >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en >> --- >> You received this message because you are subscribed to the Google Groups >> "Android Developers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > > > -- > Romain Guy > Android framework engineer > [email protected] > > -- > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > --- > You received this message because you are subscribed to a topic in the > Google Groups "Android Developers" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/android-developers/rqh379btofQ/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

