Merge pull request #5187 from jherico/fix_overlay_backgrounds

Fix the 2D text overlay backgrounds to stop using a previously bound …
This commit is contained in:
Brad Hefta-Gaub 2015-06-22 17:32:06 -07:00
commit de39049a56

View file

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