Mercurial > mplayer.hg
diff libvo/vo_gl.c @ 18653:5af43a16abc3
loadGPUProgram function to load fragment program with error checking and statistics
author | reimar |
---|---|
date | Thu, 08 Jun 2006 18:50:11 +0000 |
parents | 106a0c366002 |
children | 96b0da901a7d |
line wrap: on
line diff
--- a/libvo/vo_gl.c Thu Jun 08 18:17:02 2006 +0000 +++ b/libvo/vo_gl.c Thu Jun 08 18:50:11 2006 +0000 @@ -172,12 +172,7 @@ char *prog = calloc(1, MAX_CUSTOM_PROG_SIZE + 1); fread(prog, 1, MAX_CUSTOM_PROG_SIZE, f); fclose(f); - ProgramString(GL_FRAGMENT_PROGRAM, GL_PROGRAM_FORMAT_ASCII, - strlen(prog), prog); - glGetIntegerv(GL_PROGRAM_ERROR_POSITION, &i); - if (i != -1) - mp_msg(MSGT_VO, MSGL_ERR, - "[gl] Error in custom program at pos %i (%.20s)\n", i, &prog[i]); + loadGPUProgram(GL_FRAGMENT_PROGRAM, prog); free(prog); } ProgramEnvParameter4f(GL_FRAGMENT_PROGRAM, 0,