mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 05:21:49 +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();
|
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…
Add table
Add a link
Reference in a new issue