Module: wine Branch: refs/heads/master Commit: a7063774b91116e80a28d5ce09d06b0118280fe4 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=a7063774b91116e80a28d5ce...
Author: Stefan Dösinger stefandoesinger@gmx.at Date: Sat Apr 1 19:34:20 2006 +0200
wined3d: Do not set the mipmap level count every time a texture is used.
---
dlls/wined3d/basetexture.c | 10 ---------- 1 files changed, 0 insertions(+), 10 deletions(-)
diff --git a/dlls/wined3d/basetexture.c b/dlls/wined3d/basetexture.c index 8d420cf..9938abd 100644 --- a/dlls/wined3d/basetexture.c +++ b/dlls/wined3d/basetexture.c @@ -275,16 +275,6 @@ HRESULT WINAPI IWineD3DBaseTextureImpl_B
/* Bind the texture */ if (This->baseTexture.textureName != 0) { - /* Always need to reset the number of mipmap levels when rebinding as it is - a property of the active texture unit, and another texture may have set it - to a different value */ - if (This->baseTexture.levels > 1) { - TRACE("Setting GL_TEXTURE_MAX_LEVEL to %d\n", This->baseTexture.levels - 1); - glTexParameteri(textureDimensions, GL_TEXTURE_MAX_LEVEL, This->baseTexture.levels - 1); - checkGLcall("glTexParameteri(textureDimensions, GL_TEXTURE_MAX_LEVEL, This->baseTexture.levels)"); - } else { - glTexParameteri(textureDimensions, GL_TEXTURE_MIN_FILTER, GL_LINEAR); - } glBindTexture(textureDimensions, This->baseTexture.textureName); checkGLcall("glBindTexture"); if (isNewTexture) {