Skip to content

Commit 34e2c2c

Browse files
committed
Fix validation error upon window resizing
1 parent fb6eda9 commit 34e2c2c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

demo/common/blit.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@ Blit::Blit(const std::shared_ptr<Device> &device, const std::shared_ptr<Queue> &
7575

7676
void Blit::set_texture(const std::shared_ptr<Texture> &new_texture) {
7777
texture_ = new_texture;
78+
}
7879

80+
void Blit::draw(const std::shared_ptr<CommandEncoder> &encoder) {
7981
descriptor_set_->add_or_update({
8082
Descriptor::sampled(0, ShaderStage::Fragment, "uTexture", texture_, sampler_),
8183
});
82-
}
8384

84-
void Blit::draw(const std::shared_ptr<CommandEncoder> &encoder) {
8585
encoder->bind_render_pipeline(pipeline_);
8686

8787
encoder->bind_vertex_buffers({vertex_buffer_});

pathfinder/core/d3d9/renderer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ void RendererD3D9::upload_and_draw_tiles(const std::vector<DrawTileBatchD3D9> &t
419419
}
420420

421421
// Different batches will use the same tile vertex buffer, so we need to make sure
422-
// that a batch is down drawing before processing the next batch.
422+
// that a batch is done drawing before processing the next batch.
423423
auto encoder = device->create_command_encoder("upload & draw tiles");
424424

425425
// Apply clip paths.

0 commit comments

Comments
 (0)