mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
textbox render fix
This commit is contained in:
parent
81bdd0c7e6
commit
702fbc1839
1 changed files with 3 additions and 0 deletions
|
|
@ -426,6 +426,9 @@ void TextBox::drawBackground(const GfxContext* pctx, Assets* assets) {
|
|||
auto batch = pctx->getBatch2D();
|
||||
batch->texture(nullptr);
|
||||
|
||||
auto subctx = pctx->sub();
|
||||
subctx.setScissors(glm::vec4(pos.x, pos.y, size.x, size.y));
|
||||
|
||||
if (valid) {
|
||||
if (isFocused() && !multiline) {
|
||||
batch->setColor(focusedColor);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue