mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 04:07:11 +02:00
quick hack to fix stats texture bleed through
This commit is contained in:
parent
b11b1d408b
commit
87951ff7b3
1 changed files with 4 additions and 0 deletions
|
@ -161,6 +161,10 @@ void Stats::drawBackground(unsigned int rgba, int x, int y, int width, int heigh
|
|||
((rgba >> 8) & 0xff) / 255.0f,
|
||||
(rgba & 0xff) / 255.0f);
|
||||
|
||||
// FIX ME: is this correct? It seems to work to fix textures bleeding into us...
|
||||
glBindTexture(GL_TEXTURE_2D, 0);
|
||||
glDisable(GL_TEXTURE_2D);
|
||||
|
||||
DependencyManager::get<GeometryCache>()->renderQuad(x, y, width, height, color);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue