mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 20:41:49 +00:00
commit
d965aaa55e
1 changed files with 1 additions and 1 deletions
|
|
@ -34,8 +34,8 @@ void Image::draw(const DrawContext& pctx, const Assets& assets) {
|
||||||
|
|
||||||
auto textureRegion = refreshTexture(assets);
|
auto textureRegion = refreshTexture(assets);
|
||||||
|
|
||||||
batch->setRegion(textureRegion.region);
|
|
||||||
batch->texture(textureRegion.texture);
|
batch->texture(textureRegion.texture);
|
||||||
|
batch->setRegion(textureRegion.region);
|
||||||
batch->rect(
|
batch->rect(
|
||||||
pos.x,
|
pos.x,
|
||||||
pos.y,
|
pos.y,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue