examples: glyphs: fix double-free of texture
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
6feaad630e
commit
3d4888f430
1 changed files with 1 additions and 0 deletions
|
|
@ -69,6 +69,7 @@ fn afterInit(
|
||||||
// Create a sprite rendering pipeline
|
// Create a sprite rendering pipeline
|
||||||
const texture = glyphs.state().texture;
|
const texture = glyphs.state().texture;
|
||||||
const pipeline = try entities.new();
|
const pipeline = try entities.new();
|
||||||
|
texture.reference();
|
||||||
try sprite_pipeline.set(pipeline, .texture, texture);
|
try sprite_pipeline.set(pipeline, .texture, texture);
|
||||||
sprite_pipeline.send(.update, .{});
|
sprite_pipeline.send(.update, .{});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue