| 30 | #define LOGE(...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__) |
| 31 | |
| 32 | static void printGLString(const char* name, GLenum s) { |
| 33 | const char* v = (const char*)glGetString(s); |
| 34 | LOGI("GL %s = %s\n", name, v); |
| 35 | } |
| 36 | |
| 37 | static void checkGlError(const char* op) { |
| 38 | for (GLint error = glGetError(); error; error = glGetError()) { |