Example usage for android.opengl GLES10 glGetError

List of usage examples for android.opengl GLES10 glGetError

Introduction

In this page you can find the example usage for android.opengl GLES10 glGetError.

Prototype

public static native int glGetError();

Source Link

Usage

From source file:com.adobe.plugins.FastCanvasRenderer.java

private void checkError() {
    int error = GLES10.glGetError();
    if (error != GLES10.GL_NO_ERROR) {
        Log.i("CANVAS", "CanvasRenderer glError=" + error);
    }/*w  ww. j  a  v a 2 s .c  o  m*/
    assert error == GLES10.GL_NO_ERROR;
}