textbox render fix
This commit is contained in:
parent
23f8ab8a77
commit
789f3176d4
@ -426,6 +426,9 @@ void TextBox::drawBackground(const GfxContext* pctx, Assets* assets) {
|
|||||||
auto batch = pctx->getBatch2D();
|
auto batch = pctx->getBatch2D();
|
||||||
batch->texture(nullptr);
|
batch->texture(nullptr);
|
||||||
|
|
||||||
|
auto subctx = pctx->sub();
|
||||||
|
subctx.setScissors(glm::vec4(pos.x, pos.y, size.x, size.y));
|
||||||
|
|
||||||
if (valid) {
|
if (valid) {
|
||||||
if (isFocused() && !multiline) {
|
if (isFocused() && !multiline) {
|
||||||
batch->setColor(focusedColor);
|
batch->setColor(focusedColor);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user