Commit f5885def authored by Jason Edmeades's avatar Jason Edmeades Committed by Alexandre Julliard

Only reload the mipmap images when dirty.

parent 6f2a071d
...@@ -3178,6 +3178,9 @@ HRESULT WINAPI IDirect3DDevice8Impl_SetTexture(LPDIRECT3DDEVICE8 iface, DWORD ...@@ -3178,6 +3178,9 @@ HRESULT WINAPI IDirect3DDevice8Impl_SetTexture(LPDIRECT3DDEVICE8 iface, DWORD
glBindTexture(GL_TEXTURE_2D, pTexture2->surfaces[i]->textureName); glBindTexture(GL_TEXTURE_2D, pTexture2->surfaces[i]->textureName);
checkGLcall("glBindTexture"); checkGLcall("glBindTexture");
TRACE("Texture %p (level %d) given name %d\n", pTexture2->surfaces[i], i, pTexture2->surfaces[i]->textureName); TRACE("Texture %p (level %d) given name %d\n", pTexture2->surfaces[i], i, pTexture2->surfaces[i]->textureName);
/* No need to walk through all mip-map levels, since already all assigned */
i = pTexture2->levels;
} else { } else {
if (i==0) { if (i==0) {
...@@ -3231,6 +3234,9 @@ HRESULT WINAPI IDirect3DDevice8Impl_SetTexture(LPDIRECT3DDEVICE8 iface, DWORD ...@@ -3231,6 +3234,9 @@ HRESULT WINAPI IDirect3DDevice8Impl_SetTexture(LPDIRECT3DDEVICE8 iface, DWORD
glBindTexture(GL_TEXTURE_3D, pTexture2->volumes[i]->textureName); glBindTexture(GL_TEXTURE_3D, pTexture2->volumes[i]->textureName);
checkGLcall("glBindTexture"); checkGLcall("glBindTexture");
TRACE("Texture %p given name %d\n", pTexture2->volumes[i], pTexture2->volumes[i]->textureName); TRACE("Texture %p given name %d\n", pTexture2->volumes[i], pTexture2->volumes[i]->textureName);
/* No need to walk through all mip-map levels, since already all assigned */
i = pTexture2->levels;
} else { } else {
if (i==0) { if (i==0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment