Skip to content

Commit

Permalink
native GetShaderInfoLog routine works
Browse files Browse the repository at this point in the history
  • Loading branch information
Lawrence D'Oliveiro committed Jul 20, 2012
1 parent cce7f63 commit fffe099
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions jni/gl_useful.c
Expand Up @@ -38,9 +38,7 @@ static jstring get_shader_info_log
{
const size_t msgmax = 4096; /* should be plenty big enough */
char * const msg = calloc(1, msgmax);
size_t msglen;
glGetShaderInfoLog(shader_id, msgmax, &msglen, msg);
__android_log_print(ANDROID_LOG_DEBUG, "GLUseful.get_shader_info_log", "GetShaderInfoLog(%d) = “%s”\n", msglen, msg); /* debug */
glGetShaderInfoLog(shader_id, msgmax, 0, msg);
const jstring result = JNNewStringUTF(env, msg);
free(msg);
return
Expand Down

0 comments on commit fffe099

Please sign in to comment.