src/shader.c

changeset 271
ddcf637587ce
parent 270
3031d1bb5957
equal deleted inserted replaced
270:3031d1bb5957 271:ddcf637587ce
261 261
262 void asc_shader_clear_registry(void) { 262 void asc_shader_clear_registry(void) {
263 cxListClear(asc_active_glctx->shaders); 263 cxListClear(asc_active_glctx->shaders);
264 // also clear the active program to avoid accidental matches with newly created shaders 264 // also clear the active program to avoid accidental matches with newly created shaders
265 asc_shader_use(NULL, NULL); 265 asc_shader_use(NULL, NULL);
266 asc_dprintf("Shader cache cleared.");
266 } 267 }
267 268
268 asc_uniform_loc asc_shader_get_uniform_loc(const AscShaderProgram *shader, const char *name) { 269 asc_uniform_loc asc_shader_get_uniform_loc(const AscShaderProgram *shader, const char *name) {
269 return glGetUniformLocation(shader->gl_id, name); 270 return glGetUniformLocation(shader->gl_id, name);
270 } 271 }

mercurial