Skip to content

Instantly share code, notes, and snippets.

@framundo
Created April 14, 2016 13:23
Show Gist options
  • Select an option

  • Save framundo/744a2db67b14eae98c0eb5487b47bfbd to your computer and use it in GitHub Desktop.

Select an option

Save framundo/744a2db67b14eae98c0eb5487b47bfbd to your computer and use it in GitHub Desktop.
public class GLHelper {
private static final String TAG = "GLHelper";
public static void checkGlError(String glOperation) {
int error;
while ((error = GLES20.glGetError()) != GLES20.GL_NO_ERROR) {
Log.e(TAG, glOperation + ": glError " + error);
throw new RuntimeException(glOperation + ": glError " + error);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment