[core] GL types for buckets, textures, buffers

This commit is contained in:
Bruno de Oliveira Abinader
2015-09-10 17:59:58 +03:00
committed by Konstantin Käfer
parent 05d01194b7
commit c33a6bddc6
15 changed files with 56 additions and 53 deletions

View File

@@ -50,7 +50,7 @@ void Raster::bind(bool linear) {
MBGL_CHECK_ERROR(glBindTexture(GL_TEXTURE_2D, texture));
}
GLuint new_filter = linear ? GL_LINEAR : GL_NEAREST;
GLint new_filter = linear ? GL_LINEAR : GL_NEAREST;
if (new_filter != this->filter) {
MBGL_CHECK_ERROR(glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, new_filter));
MBGL_CHECK_ERROR(glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, new_filter));