public static void checkGlError(String op){
  int error=GLES20.glGetError();
  if (error != GLES20.GL_NO_ERROR) {
    String msg=op + ": glError 0x" + Integer.toHexString(error);
    Log.e(TAG,msg);
    throw new RuntimeException(msg);
  }
}

public static void checkGlError ( String op ) { int error = GLES20 . glGetError ( ) ; if ( error != GLES20 . GL_NO_ERROR ) { String msg = op + ": glError 0x" + Integer . toHexString ( error ) ; Log . e ( TAG , msg ) ; throw new RuntimeException ( msg ) ; } }
checks to see if a gles error has been raised .
