From 27b20bac43a1cc54037d2daec81f90d3f3479473 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Mon, 25 Jul 2011 20:45:09 +0200 Subject: [PATCH] wined3d: Unbind all textures in wined3d_device_reset(). --- dlls/wined3d/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 9fd82b5d005..2db0e3fee91 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -5634,7 +5634,7 @@ HRESULT CDECL wined3d_device_reset(struct wined3d_device *device, { 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); }