Java tutorial
//package com.java2s; import android.opengl.GLES20; import android.util.Log; public class Main { private static final String LOGTAG = "Vuforia_Sample_Applications"; public static void checkGLError(String op) { for (int error = GLES20.glGetError(); error != 0; error = GLES20.glGetError()) Log.e(LOGTAG, "After operation " + op + " got glError 0x" + Integer.toHexString(error)); } }