improve texture mipmap count

GL_TEXTURE_MAX_LEVEL set how many mipmaps should be allocated, but all of them must be created.
GL_TEXTURE_MAX_LOD set how many mipmaps may be used.
This commit is contained in:
degasus
2013-01-16 21:15:07 +01:00
parent 8a7f1e9264
commit b778b86e26
2 changed files with 14 additions and 19 deletions

View File

@ -46,7 +46,7 @@ private:
int gl_iformat;
int gl_type;
bool bHaveMipMaps;
int m_tex_levels;
//TexMode0 mode; // current filter and clamp modes that texture is set to
//TexMode1 mode1; // current filter and clamp modes that texture is set to