textbox render fix

This commit is contained in:
MihailRis 2024-03-16 05:40:30 +03:00
parent 23f8ab8a77
commit 789f3176d4

View File

@ -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);