wined3d: Unbind all textures in wined3d_device_reset().

This commit is contained in:
Henri Verbeet 2011-07-25 20:45:09 +02:00 committed by Alexandre Julliard
parent 44e109debe
commit 27b20bac43
1 changed files with 1 additions and 1 deletions

View File

@ -5634,7 +5634,7 @@ HRESULT CDECL wined3d_device_reset(struct wined3d_device *device,
{ {
wined3d_device_set_stream_source(device, i, NULL, 0, 0); wined3d_device_set_stream_source(device, i, NULL, 0, 0);
} }
for (i = 0; i < MAX_FRAGMENT_SAMPLERS; ++i) for (i = 0; i < MAX_COMBINED_SAMPLERS; ++i)
{ {
wined3d_device_set_texture(device, i, NULL); wined3d_device_set_texture(device, i, NULL);
} }