mirror of
https://github.com/lubosz/overte.git
synced 2025-04-16 19:59:20 +02:00
Fix the 2D text overlay backgrounds to stop using a previously bound texture
This commit is contained in:
parent
98f7b0a689
commit
ce3d1bd9a4
1 changed files with 1 additions and 0 deletions
|
@ -80,6 +80,7 @@ void TextOverlay::render(RenderArgs* args) {
|
|||
|
||||
glm::vec2 topLeft(left, top);
|
||||
glm::vec2 bottomRight(right, bottom);
|
||||
glBindTexture(GL_TEXTURE_2D, 0);
|
||||
DependencyManager::get<GeometryCache>()->renderQuad(topLeft, bottomRight, quadColor);
|
||||
|
||||
const int leftAdjust = -1; // required to make text render relative to left edge of bounds
|
||||
|
|
Loading…
Reference in a new issue