Created
April 14, 2016 13:23
-
-
Save framundo/744a2db67b14eae98c0eb5487b47bfbd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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