wined3d: Add a comment about D3DSAMP_MAXMIPLEVEL.

This commit is contained in:
Stefan Dösinger 2009-08-30 17:46:38 +02:00 committed by Alexandre Julliard
parent 531ec2267b
commit eafc00e173
1 changed files with 4 additions and 0 deletions

View File

@ -432,6 +432,10 @@ void basetexture_apply_state_changes(IWineD3DBaseTexture *iface,
} else {
glValue = states[WINED3DTEXSTA_MAXMIPLEVEL];
}
/* Note that D3DSAMP_MAXMIPLEVEL specifies the biggest mipmap(default 0), while
* GL_TEXTURE_MAX_LEVEL specifies the smallest mimap used(default 1000).
* So D3DSAMP_MAXMIPLEVEL is the same as GL_TEXTURE_BASE_LEVEL.
*/
glTexParameteri(textureDimensions, GL_TEXTURE_BASE_LEVEL, glValue);
}
}