UPD: Disable texture binding after textrendering
This commit is contained in:
parent
4146ea5ea1
commit
5804ed15ee
@ -73,6 +73,8 @@ void TextRenderer::renderText(const UiText &textToRender) {
|
|||||||
glBindVertexArray(0);
|
glBindVertexArray(0);
|
||||||
glDisableVertexAttribArray(0);
|
glDisableVertexAttribArray(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
glBindTexture(GL_TEXTURE_2D, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TextRenderer::renderGuiTexts(const std::vector<std::shared_ptr<GUIText>> &texts) {
|
void TextRenderer::renderGuiTexts(const std::vector<std::shared_ptr<GUIText>> &texts) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user