~stellarium/stellarium/textures-cleanup

« back to all changes in this revision

Viewing changes to src/core/StelTexture.cpp

  • Committer: Guillaume Chereau
  • Date: 2013-10-13 08:06:40 UTC
  • Revision ID: guillaume.chereau@gmail.com-20131013080640-zd6fjso7is0a2kuf
reintroduce texture mipmap support

Show diffs side-by-side

added added

removed removed

Lines of Context:
269
269
                                 data.type, data.data.constData());
270
270
        glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, loadParams.wrapMode);
271
271
        glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, loadParams.wrapMode);
 
272
        if (loadParams.generateMipmaps)
 
273
                glGenerateMipmap(GL_TEXTURE_2D);
272
274
        // Report success of texture loading
273
275
        emit(loadingProcessFinished(false));
274
276
        return true;