diff options
author | Leith Bade <leith@mapbox.com> | 2014-12-02 02:29:07 +1100 |
---|---|---|
committer | Leith Bade <leith@mapbox.com> | 2014-12-02 02:29:07 +1100 |
commit | 204700ff7e2e45ecc4ce50582988c014626b0dfe (patch) | |
tree | bb8becc9d6d52fba14fb654d3e6db72f26887a3e /src/geometry/glyph_atlas.cpp | |
parent | 763e636fd758410b56353bfe2b8a7ab6052c2430 (diff) | |
download | qtlocation-mapboxgl-204700ff7e2e45ecc4ce50582988c014626b0dfe.tar.gz |
Stop mipmap allocation for textures
Diffstat (limited to 'src/geometry/glyph_atlas.cpp')
-rw-r--r-- | src/geometry/glyph_atlas.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/geometry/glyph_atlas.cpp b/src/geometry/glyph_atlas.cpp index 50bda5dc4e..abfde0a556 100644 --- a/src/geometry/glyph_atlas.cpp +++ b/src/geometry/glyph_atlas.cpp @@ -143,6 +143,7 @@ void GlyphAtlas::bind() { if (!texture) { glGenTextures(1, &texture); glBindTexture(GL_TEXTURE_2D, texture); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAX_LEVEL, 0); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); |