Update TextRendering.cpp
Some checks failed
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 5m24s

Reset the Texture after drawing text.
This commit is contained in:
2024-07-15 11:50:27 -04:00
parent 8625c52ee9
commit e261b610c2

View File

@@ -180,6 +180,7 @@ namespace JGL {
glVertexPointer(2, GL_FLOAT, sizeof(GLfloat) * 2, vertices.data());
glTexCoordPointer(2, GL_FLOAT, sizeof(GLfloat) * 2, texcoords.data());
glDrawArrays(GL_TRIANGLES, 0, vertices.size() / 2);
glBindTexture(GL_TEXTURE_2D, 0);
}
void J2D::DrawString(const Color3& color, const std::string& text, float x, float y, float scale, u32 size, unsigned int font_index) {