Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Got the same problem. Original Buggy Code:</p> <pre class="lang-java prettyprint-override"><code>public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Log.d(this.getClass().getName(), "Into onCreate Draw triangle"); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); requestWindowFeature(Window.FEATURE_NO_TITLE); if (detectOpenGLES20()){ Log.d("GLES20", "GL ES 2.0 Supported..............!"); } else { Log.d("GLES20", "GL ES 2.0 Not Supported...............!"); } view = new GLSurfaceView(this); view.setEGLContextClientVersion(2); view.setEGLConfigChooser(true); view.setRenderer(new TriangleRenderer(view)); setContentView(view); } </code></pre> <p><br> <b>Solved by : </b><br><br> a.) Replacing this code line </p> <pre class="lang-java prettyprint-override"><code>view.setEGLConfigChooser(true); </code></pre> <p>with</p> <pre class="lang-java prettyprint-override"><code>view.setEGLConfigChooser(8, 8, 8, 8, 16, 0); </code></pre> <p><br> b.) Setting <code>-gpu on</code> via Eclipse --> Run as ---> Target ---> Additional Emulator Command Line Options <br></p> <p><i>Adding a little more to the above discussion:</i><br> There were two different Exception messages I came across while working with the above piece of code</p> <blockquote> <p>FATAL EXCEPTION: GLThread 75 java.lang.IllegalArgumentException: No configs match configSpec</p> </blockquote> <p>and </p> <blockquote> <p>java.lang.IllegalArgumentException: No config chosen</p> </blockquote> <p>A more detailed case study narrated at <a href="http://on-android-opengl2.blogspot.in/2013/05/android-opengl-es-20-emulator.html" rel="nofollow">http://on-android-opengl2.blogspot.in/2013/05/android-opengl-es-20-emulator.html</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload