Fix the 2D text overlay backgrounds to stop using a previously bound texture

This commit is contained in:
Bradley Austin Davis 2015-06-22 16:19:31 -07:00
parent 98f7b0a689
commit ce3d1bd9a4

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