mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
gallium: don't free shader.tokens in get_passthrough_fs()
This commit is contained in:
parent
2a39dbe736
commit
f763cc3cb5
1 changed files with 2 additions and 0 deletions
|
|
@ -262,7 +262,9 @@ get_passthrough_fs(struct st_context *st)
|
||||||
if (!st->passthrough_fs) {
|
if (!st->passthrough_fs) {
|
||||||
st->passthrough_fs =
|
st->passthrough_fs =
|
||||||
util_make_fragment_passthrough_shader(st->pipe, &shader);
|
util_make_fragment_passthrough_shader(st->pipe, &shader);
|
||||||
|
#if 0 /* We actually need to keep the tokens around at this time */
|
||||||
free((void *) shader.tokens);
|
free((void *) shader.tokens);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
return st->passthrough_fs;
|
return st->passthrough_fs;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue