Code example for GL10

Methods: glGetError

0
 
        System.exit(0);
    } 
 
    private void glCheck(GL10 gl) {
        int gle = gl.glGetError();
        if (gle != gl.GL_NO_ERROR) {
            throw new RuntimeException("GL Error: " + gle);
        }         
    } 
     
    private void waitForStart() { 
 
        int presplashId = mResourceManager.getIdentifier("presplash", "drawable");
        InputStream is = mActivity.getResources().openRawResource(presplashId);
 
        Bitmap bitmap = null;
        try { 
            bitmap = BitmapFactory.decodeStream(is);            
        } finally { 
            try {