mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix image uv region reset
This commit is contained in:
parent
dc654aafff
commit
1719f55893
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);
|
||||
|
||||
batch->setRegion(textureRegion.region);
|
||||
batch->texture(textureRegion.texture);
|
||||
batch->setRegion(textureRegion.region);
|
||||
batch->rect(
|
||||
pos.x,
|
||||
pos.y,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue