opengl: fix warning about unused variable

This commit is contained in:
Bernd Busse 2020-12-17 23:19:53 +01:00
parent a335eed0b5
commit cce531a5ed
No known key found for this signature in database
GPG Key ID: 6DD2A3C48E63A5AB
1 changed files with 1 additions and 3 deletions

View File

@ -520,9 +520,7 @@ bool glx_init_rounded_corners(session_t *ps) {
strlen(texture_func) + 1;
char *shader_str = ccalloc(len, char);
char *pc = shader_str;
sprintf(pc, FRAG_SHADER, extension, sampler_type, texture_func);
pc += strlen(pc);
sprintf(shader_str, FRAG_SHADER, extension, sampler_type, texture_func);
assert(strlen(shader_str) < len);
log_debug("Generated rounded corners shader:\n%s\n", shader_str);