| 42 | } |
| 43 | |
| 44 | static void _printShaderLog(GLuint shader) { |
| 45 | char buf[2048]; |
| 46 | memset(buf, 0, sizeof(buf)); |
| 47 | LOGE("*** Getting info log for shader %u", shader); |
| 48 | glGetShaderInfoLog(shader, sizeof(buf) - 1, NULL, buf); |
| 49 | LOGE("*** Info log:\n%s", buf); |
| 50 | } |
| 51 | |
| 52 | static void _printProgramLog(GLuint program) { |
| 53 | char buf[2048]; |