Stefan Dösinger : wined3d: Add a comment about D3DSAMP_MAXMIPLEVEL.
Alexandre Julliard
julliard at winehq.org
Mon Aug 31 10:47:03 CDT 2009
Module: wine
Branch: master
Commit: eafc00e1731757010e8ec39a82093eddd34ed1fc
URL: http://source.winehq.org/git/wine.git/?a=commit;h=eafc00e1731757010e8ec39a82093eddd34ed1fc
Author: Stefan Dösinger <stefan at codeweavers.com>
Date: Sun Aug 30 17:46:38 2009 +0200
wined3d: Add a comment about D3DSAMP_MAXMIPLEVEL.
---
dlls/wined3d/basetexture.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/basetexture.c b/dlls/wined3d/basetexture.c
index 9633e01..a36d993 100644
--- a/dlls/wined3d/basetexture.c
+++ b/dlls/wined3d/basetexture.c
@@ -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);
}
}
More information about the wine-cvs
mailing list