diff options
Diffstat (limited to 'opengl/tools/glgen/stubs/gles11/glGetShaderInfoLog.cpp')
-rw-r--r-- | opengl/tools/glgen/stubs/gles11/glGetShaderInfoLog.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/opengl/tools/glgen/stubs/gles11/glGetShaderInfoLog.cpp b/opengl/tools/glgen/stubs/gles11/glGetShaderInfoLog.cpp deleted file mode 100644 index dd656b6..0000000 --- a/opengl/tools/glgen/stubs/gles11/glGetShaderInfoLog.cpp +++ /dev/null @@ -1,19 +0,0 @@ -#include <stdlib.h> - -/* void glGetShaderInfoLog ( GLuint shader, GLsizei maxLength, GLsizei* length, GLchar* infoLog ) */ -static jstring android_glGetShaderInfoLog(JNIEnv *_env, jobject, jint shader) { - GLint infoLen = 0; - glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen); - if (!infoLen) { - return _env->NewStringUTF(""); - } - char* buf = (char*) malloc(infoLen); - if (buf == NULL) { - jniThrowException(_env, "java/lang/IllegalArgumentException", "out of memory"); - return NULL; - } - glGetShaderInfoLog(shader, infoLen, NULL, buf); - jstring result = _env->NewStringUTF(buf); - free(buf); - return result; -} |