Lines Matching refs:prog_id
107 static bool link_and_check(GLuint prog_id) in link_and_check() argument
111 glLinkProgram(prog_id); in link_and_check()
112 glGetProgramiv(prog_id, GL_LINK_STATUS, &lret); in link_and_check()
116 glGetProgramInfoLog(prog_id, 65536, &len, infolog); in link_and_check()
119 glDeleteProgram(prog_id); in link_and_check()
680 static void vrend_set_vertex_param(GLuint prog_id) in vrend_set_vertex_param() argument
684 pos_loc = glGetAttribLocation(prog_id, "arg0"); in vrend_set_vertex_param()
685 tc_loc = glGetAttribLocation(prog_id, "arg1"); in vrend_set_vertex_param()
706 GLuint prog_id; in vrend_renderer_blit_gl() local
731 prog_id = glCreateProgram(); in vrend_renderer_blit_gl()
732 glAttachShader(prog_id, blit_ctx->vs); in vrend_renderer_blit_gl()
743 glAttachShader(prog_id, fs_id); in vrend_renderer_blit_gl()
745 if(!link_and_check(prog_id)) in vrend_renderer_blit_gl()
748 glUseProgram(prog_id); in vrend_renderer_blit_gl()
758 vrend_set_vertex_param(prog_id); in vrend_renderer_blit_gl()
799 glDeleteProgram(prog_id); in vrend_renderer_blit_gl()