Skip to content

Commit

Permalink
tools/glls_preproc: use correct shader asprintf
Browse files Browse the repository at this point in the history
We want to use the locale-invariant asprintf_c, matching the behavior of
the old GLSL() macro.
  • Loading branch information
haasn committed Aug 9, 2023
1 parent 3a037ee commit 2af3c56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/glsl.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ size_t _glsl_330_fn(void *alloc, pl_str *buf, const uint8_t *ptr)
} vars;
memcpy(&vars, ptr, sizeof(vars));
pl_str_append_asprintf(alloc, buf,
pl_str_append_asprintf_c(alloc, buf,
"/* pl_shader_sample_bicubic */\n"
" vec4 color;\n"
" {\n"
Expand Down
2 changes: 1 addition & 1 deletion tools/glsl_preproc/templates/glsl_block.c.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#line {{ block.linenr }}
{% if block.refs %}
pl_str_append_asprintf(alloc, buf,
pl_str_append_asprintf_c(alloc, buf,
{% for line in block.lines %}
{{ line.fmtstr }}{{ ',' if loop.last }}
{% endfor %}
Expand Down

0 comments on commit 2af3c56

Please sign in to comment.