wined3d: Reset all the dummy textures to 0 on destroy.

This commit is contained in:
Matteo Bruni 2013-04-10 01:35:40 +02:00 committed by Alexandre Julliard
parent 46fa0448d9
commit a0c06a94aa
1 changed files with 4 additions and 4 deletions

View File

@ -982,10 +982,10 @@ static void destroy_dummy_textures(struct wined3d_device *device, const struct w
gl_info->gl_ops.gl.p_glDeleteTextures(count, device->dummy_texture_2d);
checkGLcall("glDeleteTextures(count, device->dummy_texture_2d)");
memset(device->dummy_texture_cube, 0, gl_info->limits.textures * sizeof(*device->dummy_texture_cube));
memset(device->dummy_texture_3d, 0, gl_info->limits.textures * sizeof(*device->dummy_texture_3d));
memset(device->dummy_texture_rect, 0, gl_info->limits.textures * sizeof(*device->dummy_texture_rect));
memset(device->dummy_texture_2d, 0, gl_info->limits.textures * sizeof(*device->dummy_texture_2d));
memset(device->dummy_texture_cube, 0, count * sizeof(*device->dummy_texture_cube));
memset(device->dummy_texture_3d, 0, count * sizeof(*device->dummy_texture_3d));
memset(device->dummy_texture_rect, 0, count * sizeof(*device->dummy_texture_rect));
memset(device->dummy_texture_2d, 0, count * sizeof(*device->dummy_texture_2d));
}
static LONG fullscreen_style(LONG style)