Lines Matching defs:levels
41 HRESULT basetexture_init(IWineD3DBaseTextureImpl *texture, UINT levels, WINED3DRESOURCETYPE resource_type,
52 if (levels > MAX_MIP_LEVELS)
54 WARN("Too many texture levels %d", levels);
70 texture->baseTexture.levels = levels;
148 if(LODNew >= This->baseTexture.levels)
149 LODNew = This->baseTexture.levels - 1;
178 TRACE("(%p) : returning %d\n", This, This->baseTexture.levels);
179 return This->baseTexture.levels;
358 /* For a new texture we have to set the textures levels after binding the texture.
366 TRACE("Setting GL_TEXTURE_MAX_LEVEL to %d\n", This->baseTexture.levels - 1);
367 glTexParameteri(textureDimensions, GL_TEXTURE_MAX_LEVEL, This->baseTexture.levels - 1);
368 checkGLcall("glTexParameteri(textureDimensions, GL_TEXTURE_MAX_LEVEL, This->baseTexture.levels)");
511 } else if(gl_tex->states[WINED3DTEXSTA_MAXMIPLEVEL] >= This->baseTexture.levels) {
512 glValue = This->baseTexture.levels - 1;