From c3b3db07f160ac3b1cfd17f249851d139e952f7c Mon Sep 17 00:00:00 2001 From: kervala Date: Sun, 18 Dec 2016 13:57:26 +0100 Subject: [PATCH] Changed: Memory leaks detection --HG-- branch : develop --- code/nel/src/3d/anim_detail_trav.cpp | 3 +++ code/nel/src/3d/animation_set_user.cpp | 3 +++ code/nel/src/3d/async_texture_manager.cpp | 4 ++++ code/nel/src/3d/bezier_patch.cpp | 4 ++++ code/nel/src/3d/bloom_effect.cpp | 4 ++++ code/nel/src/3d/bone.cpp | 3 +++ code/nel/src/3d/camera.cpp | 3 +++ code/nel/src/3d/camera_col.cpp | 3 +++ code/nel/src/3d/channel_mixer.cpp | 4 ++++ code/nel/src/3d/clip_trav.cpp | 3 +++ code/nel/src/3d/cloud_scape.cpp | 4 ++++ code/nel/src/3d/cloud_scape_user.cpp | 3 +++ code/nel/src/3d/cluster.cpp | 4 ++++ code/nel/src/3d/coarse_mesh_build.cpp | 4 ++++ code/nel/src/3d/coarse_mesh_manager.cpp | 4 ++++ code/nel/src/3d/computed_string.cpp | 4 ++++ code/nel/src/3d/cube_map_builder.cpp | 3 +++ code/nel/src/3d/debug_vb.cpp | 4 ++++ code/nel/src/3d/deform_2d.cpp | 4 ++++ code/nel/src/3d/driver.cpp | 4 ++++ code/nel/src/3d/driver_user.cpp | 4 ++++ code/nel/src/3d/driver_user2.cpp | 3 +++ code/nel/src/3d/dru.cpp | 4 ++++ code/nel/src/3d/event_mouse_listener.cpp | 4 ++++ code/nel/src/3d/fast_ptr_list.cpp | 4 ++++ code/nel/src/3d/fasthls_modifier.cpp | 3 +++ code/nel/src/3d/flare_model.cpp | 3 +++ code/nel/src/3d/flare_shape.cpp | 3 +++ code/nel/src/3d/font_generator.cpp | 4 ++++ code/nel/src/3d/font_manager.cpp | 4 ++++ code/nel/src/3d/frustum.cpp | 4 ++++ code/nel/src/3d/fxaa.cpp | 10 ++++++++-- code/nel/src/3d/geometry_program.cpp | 4 ++++ code/nel/src/3d/gpu_program_params.cpp | 4 ++++ code/nel/src/3d/heat_haze.cpp | 4 ++++ code/nel/src/3d/height_map.cpp | 3 +++ code/nel/src/3d/hls_color_texture.cpp | 4 ++++ code/nel/src/3d/hls_texture_bank.cpp | 4 ++++ code/nel/src/3d/hls_texture_manager.cpp | 4 ++++ code/nel/src/3d/hrc_trav.cpp | 3 +++ code/nel/src/3d/ig_surface_light.cpp | 3 +++ code/nel/src/3d/ig_surface_light_build.cpp | 4 ++++ code/nel/src/3d/index_buffer.cpp | 4 ++++ code/nel/src/3d/init_3d.cpp | 4 ++++ code/nel/src/3d/instance_group_user.cpp | 4 ++++ code/nel/src/3d/instance_lighter.cpp | 4 ++++ code/nel/src/3d/key.cpp | 3 +++ code/nel/src/3d/landscape.cpp | 3 +++ code/nel/src/3d/landscape_collision_grid.cpp | 4 ++++ code/nel/src/3d/landscape_def.cpp | 4 ++++ code/nel/src/3d/landscape_face_vector_manager.cpp | 3 +++ code/nel/src/3d/landscape_model.cpp | 5 +++++ code/nel/src/3d/landscape_profile.cpp | 3 +++ code/nel/src/3d/landscape_user.cpp | 4 ++++ code/nel/src/3d/landscape_vegetable_block.cpp | 3 +++ code/nel/src/3d/landscapeig_manager.cpp | 4 ++++ code/nel/src/3d/landscapevb_allocator.cpp | 4 ++++ code/nel/src/3d/landscapevb_info.cpp | 3 +++ code/nel/src/3d/light.cpp | 4 ++++ code/nel/src/3d/light_contribution.cpp | 3 +++ code/nel/src/3d/light_influence_interpolator.cpp | 3 +++ code/nel/src/3d/light_trav.cpp | 5 +++-- code/nel/src/3d/light_user.cpp | 3 +++ code/nel/src/3d/lighting_manager.cpp | 3 +++ code/nel/src/3d/load_balancing_trav.cpp | 4 ++++ code/nel/src/3d/lod_character_builder.cpp | 3 +++ code/nel/src/3d/lod_character_instance.cpp | 3 +++ code/nel/src/3d/lod_character_manager.cpp | 4 ++++ code/nel/src/3d/lod_character_shape.cpp | 3 +++ code/nel/src/3d/lod_character_shape_bank.cpp | 4 ++++ code/nel/src/3d/lod_character_texture.cpp | 3 +++ code/nel/src/3d/logic_info.cpp | 3 +++ code/nel/src/3d/material.cpp | 4 ++++ code/nel/src/3d/mesh.cpp | 3 +++ code/nel/src/3d/mesh_base.cpp | 3 +++ code/nel/src/3d/mesh_base_instance.cpp | 4 ++++ code/nel/src/3d/mesh_blender.cpp | 3 +++ code/nel/src/3d/mesh_block_manager.cpp | 4 ++++ code/nel/src/3d/mesh_geom.cpp | 3 +++ code/nel/src/3d/mesh_instance.cpp | 4 ++++ code/nel/src/3d/mesh_morpher.cpp | 3 +++ code/nel/src/3d/mesh_mrm.cpp | 3 +++ code/nel/src/3d/mesh_mrm_instance.cpp | 4 ++++ code/nel/src/3d/mesh_mrm_skin_template.cpp | 4 ++++ code/nel/src/3d/mesh_mrm_skinned.cpp | 3 +++ code/nel/src/3d/mesh_mrm_skinned_instance.cpp | 4 ++++ code/nel/src/3d/mesh_mrm_skinned_template.cpp | 4 ++++ code/nel/src/3d/mesh_multi_lod.cpp | 3 +++ code/nel/src/3d/mesh_multi_lod_instance.cpp | 4 ++++ code/nel/src/3d/meshvp_per_pixel_light.cpp | 3 +++ code/nel/src/3d/meshvp_wind_tree.cpp | 3 +++ code/nel/src/3d/mini_col.cpp | 4 ++++ code/nel/src/3d/motion_blur.cpp | 3 +++ code/nel/src/3d/mrm_builder.cpp | 4 ++++ code/nel/src/3d/mrm_internal.cpp | 3 +++ code/nel/src/3d/mrm_level_detail.cpp | 3 +++ code/nel/src/3d/mrm_mesh.cpp | 4 ++++ code/nel/src/3d/nelu.cpp | 3 +++ code/nel/src/3d/noise_3d.cpp | 4 ++++ code/nel/src/3d/packed_world.cpp | 4 ++++ code/nel/src/3d/packed_zone.cpp | 4 ++++ code/nel/src/3d/particle_system.cpp | 3 +++ code/nel/src/3d/particle_system_manager.cpp | 3 +++ code/nel/src/3d/particle_system_model.cpp | 3 +++ code/nel/src/3d/particle_system_process.cpp | 4 ++++ code/nel/src/3d/particle_system_shape.cpp | 4 ++++ code/nel/src/3d/particle_system_sound_user.cpp | 3 +++ code/nel/src/3d/patch.cpp | 4 ++++ code/nel/src/3d/patch_lightmap.cpp | 4 ++++ code/nel/src/3d/patch_noise.cpp | 4 ++++ code/nel/src/3d/patch_rdr_pass.cpp | 3 +++ code/nel/src/3d/patch_render.cpp | 3 +++ code/nel/src/3d/patch_vegetable.cpp | 4 ++++ code/nel/src/3d/patchdlm_context.cpp | 4 ++++ code/nel/src/3d/patchuv_locator.cpp | 4 ++++ code/nel/src/3d/pixel_program.cpp | 4 ++++ code/nel/src/3d/play_list_manager.cpp | 3 +++ code/nel/src/3d/play_list_manager_user.cpp | 4 ++++ code/nel/src/3d/play_list_user.cpp | 4 ++++ code/nel/src/3d/point_light.cpp | 4 ++++ code/nel/src/3d/point_light_model.cpp | 3 +++ code/nel/src/3d/point_light_named.cpp | 3 +++ code/nel/src/3d/point_light_named_array.cpp | 4 ++++ code/nel/src/3d/portal.cpp | 4 ++++ code/nel/src/3d/primitive_profile.cpp | 3 +++ code/nel/src/3d/program.cpp | 4 ++++ code/nel/src/3d/ps_allocator.cpp | 4 ++++ code/nel/src/3d/ps_attrib_maker_bin_op.cpp | 3 +++ code/nel/src/3d/ps_attrib_maker_helper.cpp | 4 ++++ code/nel/src/3d/ps_attrib_maker_template.cpp | 3 +++ code/nel/src/3d/ps_color.cpp | 3 +++ code/nel/src/3d/ps_dot.cpp | 4 ++++ code/nel/src/3d/ps_emitter.cpp | 4 ++++ code/nel/src/3d/ps_face.cpp | 3 +++ code/nel/src/3d/ps_face_look_at.cpp | 3 +++ code/nel/src/3d/ps_fan_light.cpp | 3 +++ code/nel/src/3d/ps_float.cpp | 4 ++++ code/nel/src/3d/ps_force.cpp | 4 ++++ code/nel/src/3d/ps_int.cpp | 3 +++ code/nel/src/3d/ps_light.cpp | 4 ++++ code/nel/src/3d/ps_located.cpp | 4 ++++ code/nel/src/3d/ps_mesh.cpp | 4 ++++ code/nel/src/3d/ps_particle_basic.cpp | 3 +++ code/nel/src/3d/ps_plane_basis_maker.cpp | 4 ++++ code/nel/src/3d/ps_quad.cpp | 4 ++++ code/nel/src/3d/ps_register_attribs.cpp | 4 +++- code/nel/src/3d/ps_register_emitters.cpp | 3 +++ code/nel/src/3d/ps_register_forces.cpp | 4 ++++ code/nel/src/3d/ps_register_particles.cpp | 3 +++ code/nel/src/3d/ps_register_zones.cpp | 3 +++ code/nel/src/3d/ps_ribbon.cpp | 4 ++++ code/nel/src/3d/ps_ribbon_base.cpp | 4 ++++ code/nel/src/3d/ps_ribbon_look_at.cpp | 4 ++++ code/nel/src/3d/ps_shockwave.cpp | 3 +++ code/nel/src/3d/ps_sound.cpp | 4 ++++ code/nel/src/3d/ps_tail_dot.cpp | 4 ++++ code/nel/src/3d/ps_util.cpp | 3 +++ code/nel/src/3d/ps_zone.cpp | 4 ++++ code/nel/src/3d/quad_effect.cpp | 4 ++++ code/nel/src/3d/quad_grid.cpp | 4 ++++ code/nel/src/3d/raw_skin.cpp | 4 ++++ code/nel/src/3d/raw_skinned.cpp | 4 ++++ code/nel/src/3d/ray_mesh.cpp | 4 ++++ code/nel/src/3d/register_3d.cpp | 3 +++ code/nel/src/3d/render_target_manager.cpp | 4 ++++ code/nel/src/3d/render_trav.cpp | 4 ++++ code/nel/src/3d/root_model.cpp | 3 +++ code/nel/src/3d/scene.cpp | 4 ++++ code/nel/src/3d/scene_group.cpp | 4 ++++ code/nel/src/3d/scene_user.cpp | 4 ++++ code/nel/src/3d/seg_remanence.cpp | 4 +++- code/nel/src/3d/seg_remanence_shape.cpp | 3 +++ code/nel/src/3d/shadow_map.cpp | 4 ++++ code/nel/src/3d/shadow_map_manager.cpp | 4 ++++ code/nel/src/3d/shadow_poly_receiver.cpp | 4 ++++ code/nel/src/3d/shadow_skin.cpp | 4 ++++ code/nel/src/3d/shape.cpp | 3 +++ code/nel/src/3d/shape_bank.cpp | 4 ++++ code/nel/src/3d/shape_bank_user.cpp | 4 ++++ code/nel/src/3d/shape_info.cpp | 3 +++ code/nel/src/3d/shifted_triangle_cache.cpp | 3 +++ code/nel/src/3d/skeleton_model.cpp | 4 ++++ code/nel/src/3d/skeleton_shape.cpp | 4 ++++ code/nel/src/3d/skeleton_spawn_script.cpp | 4 ++++ code/nel/src/3d/skeleton_weight.cpp | 3 +++ code/nel/src/3d/stereo_debugger.cpp | 4 ++++ code/nel/src/3d/stereo_display.cpp | 4 ++++ code/nel/src/3d/stereo_hmd.cpp | 4 ++++ code/nel/src/3d/stereo_libvr.cpp | 4 ++++ code/nel/src/3d/stereo_ovr.cpp | 4 ++++ code/nel/src/3d/stereo_ovr_04.cpp | 4 ++++ code/nel/src/3d/stereo_ovr_fp.cpp | 4 ++++ code/nel/src/3d/stripifier.cpp | 4 ++++ code/nel/src/3d/surface_light_grid.cpp | 4 ++++ code/nel/src/3d/tangent_space_build.cpp | 3 +++ code/nel/src/3d/tess_block.cpp | 3 +++ code/nel/src/3d/tess_face_priority_list.cpp | 4 ++++ code/nel/src/3d/tessellation.cpp | 4 ++++ code/nel/src/3d/text_context.cpp | 4 ++++ code/nel/src/3d/text_context_user.cpp | 3 +++ code/nel/src/3d/texture.cpp | 3 +++ code/nel/src/3d/texture_blank.cpp | 3 +++ code/nel/src/3d/texture_blend.cpp | 4 ++++ code/nel/src/3d/texture_bump.cpp | 3 +++ code/nel/src/3d/texture_cube.cpp | 3 +++ code/nel/src/3d/texture_dlm.cpp | 3 +++ code/nel/src/3d/texture_emboss.cpp | 4 ++++ code/nel/src/3d/texture_far.cpp | 4 ++++ code/nel/src/3d/texture_file.cpp | 4 ++++ code/nel/src/3d/texture_font.cpp | 4 ++++ code/nel/src/3d/texture_grouped.cpp | 4 ++++ code/nel/src/3d/texture_mem.cpp | 3 +++ code/nel/src/3d/texture_multi_file.cpp | 3 +++ code/nel/src/3d/texture_near.cpp | 7 +++++-- code/nel/src/3d/tile_bank.cpp | 4 ++++ code/nel/src/3d/tile_element.cpp | 3 +++ code/nel/src/3d/tile_far_bank.cpp | 4 ++++ code/nel/src/3d/tile_light_influence.cpp | 3 +++ code/nel/src/3d/tile_lumel.cpp | 4 ++++ code/nel/src/3d/tile_noise_map.cpp | 3 +++ code/nel/src/3d/tile_vegetable_desc.cpp | 3 +++ code/nel/src/3d/track.cpp | 4 ++++ code/nel/src/3d/track_keyframer.cpp | 3 +++ code/nel/src/3d/track_sampled_common.cpp | 3 +++ code/nel/src/3d/track_sampled_quat_small_header.cpp | 3 +++ code/nel/src/3d/track_sampled_vector.cpp | 3 +++ code/nel/src/3d/transform.cpp | 4 ++++ code/nel/src/3d/transform_shape.cpp | 3 +++ code/nel/src/3d/transformable.cpp | 3 +++ code/nel/src/3d/u_bone.cpp | 3 +++ code/nel/src/3d/u_camera.cpp | 3 +++ code/nel/src/3d/u_instance.cpp | 4 ++++ code/nel/src/3d/u_instance_material.cpp | 3 +++ code/nel/src/3d/u_material.cpp | 3 +++ code/nel/src/3d/u_particle_system_instance.cpp | 3 +++ code/nel/src/3d/u_point_light.cpp | 4 ++++ code/nel/src/3d/u_shape.cpp | 3 +++ code/nel/src/3d/u_skeleton.cpp | 3 +++ code/nel/src/3d/u_transform.cpp | 4 ++++ code/nel/src/3d/u_transformable.cpp | 3 +++ code/nel/src/3d/u_visual_collision_mesh.cpp | 3 +++ code/nel/src/3d/u_water.cpp | 3 +++ code/nel/src/3d/vegetable.cpp | 3 +++ code/nel/src/3d/vegetable_blend_layer_model.cpp | 4 ++++ code/nel/src/3d/vegetable_clip_block.cpp | 3 +++ code/nel/src/3d/vegetable_instance_group.cpp | 3 +++ code/nel/src/3d/vegetable_light_ex.cpp | 3 +++ code/nel/src/3d/vegetable_quadrant.cpp | 4 ++++ code/nel/src/3d/vegetable_shape.cpp | 3 +++ code/nel/src/3d/vegetable_sort_block.cpp | 4 ++++ code/nel/src/3d/vegetablevb_allocator.cpp | 4 ++++ code/nel/src/3d/vertex_buffer.cpp | 4 ++++ code/nel/src/3d/vertex_program.cpp | 3 +++ code/nel/src/3d/vertex_program_parse.cpp | 4 ++++ code/nel/src/3d/vertex_stream_manager.cpp | 4 ++++ code/nel/src/3d/viewport.cpp | 3 +++ code/nel/src/3d/visual_collision_entity.cpp | 3 +++ code/nel/src/3d/visual_collision_entity_user.cpp | 3 +++ code/nel/src/3d/visual_collision_manager.cpp | 3 +++ code/nel/src/3d/visual_collision_manager_user.cpp | 3 +++ code/nel/src/3d/visual_collision_mesh.cpp | 3 +++ code/nel/src/3d/water_env_map_user.cpp | 4 ++++ code/nel/src/3d/water_height_map.cpp | 3 +++ code/nel/src/3d/water_model.cpp | 3 +++ code/nel/src/3d/water_shape.cpp | 3 +++ code/nel/src/3d/zone.cpp | 3 +++ code/nel/src/3d/zone_corner_smoother.cpp | 3 +++ code/nel/src/3d/zone_lighter.cpp | 4 ++++ code/nel/src/3d/zone_manager.cpp | 3 +++ code/nel/src/3d/zone_search.cpp | 3 +++ code/nel/src/3d/zone_smoother.cpp | 3 +++ code/nel/src/3d/zone_symmetrisation.cpp | 4 ++++ code/nel/src/3d/zone_tgt_smoother.cpp | 5 +++++ 273 files changed, 972 insertions(+), 8 deletions(-) diff --git a/code/nel/src/3d/anim_detail_trav.cpp b/code/nel/src/3d/anim_detail_trav.cpp index dc825b849..563e95da8 100644 --- a/code/nel/src/3d/anim_detail_trav.cpp +++ b/code/nel/src/3d/anim_detail_trav.cpp @@ -26,6 +26,9 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/animation_set_user.cpp b/code/nel/src/3d/animation_set_user.cpp index 9ad16c46a..c1e83f7f3 100644 --- a/code/nel/src/3d/animation_set_user.cpp +++ b/code/nel/src/3d/animation_set_user.cpp @@ -19,6 +19,9 @@ #include "nel/3d/animation_set_user.h" #include "nel/3d/driver_user.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/async_texture_manager.cpp b/code/nel/src/3d/async_texture_manager.cpp index a30bd6eb6..a962c9991 100644 --- a/code/nel/src/3d/async_texture_manager.cpp +++ b/code/nel/src/3d/async_texture_manager.cpp @@ -25,6 +25,10 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/bezier_patch.cpp b/code/nel/src/3d/bezier_patch.cpp index 7181630f6..099a532d2 100644 --- a/code/nel/src/3d/bezier_patch.cpp +++ b/code/nel/src/3d/bezier_patch.cpp @@ -20,6 +20,10 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { // *************************************************************************** diff --git a/code/nel/src/3d/bloom_effect.cpp b/code/nel/src/3d/bloom_effect.cpp index c468349ac..18a6ac303 100644 --- a/code/nel/src/3d/bloom_effect.cpp +++ b/code/nel/src/3d/bloom_effect.cpp @@ -33,6 +33,10 @@ using namespace NLMISC; using namespace NL3D; using namespace std; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/bone.cpp b/code/nel/src/3d/bone.cpp index 9adf64fcd..98d26c6ce 100644 --- a/code/nel/src/3d/bone.cpp +++ b/code/nel/src/3d/bone.cpp @@ -20,6 +20,9 @@ #include "nel/3d/anim_ctrl.h" #include "nel/misc/hierarchical_timer.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/camera.cpp b/code/nel/src/3d/camera.cpp index b2c02fe2f..012402b74 100644 --- a/code/nel/src/3d/camera.cpp +++ b/code/nel/src/3d/camera.cpp @@ -19,6 +19,9 @@ #include "nel/3d/camera.h" #include "nel/3d/scene.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/camera_col.cpp b/code/nel/src/3d/camera_col.cpp index 538cb1695..7f7e349d3 100644 --- a/code/nel/src/3d/camera_col.cpp +++ b/code/nel/src/3d/camera_col.cpp @@ -22,6 +22,9 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/channel_mixer.cpp b/code/nel/src/3d/channel_mixer.cpp index 6e7ab7ba7..bd8a4dff5 100644 --- a/code/nel/src/3d/channel_mixer.cpp +++ b/code/nel/src/3d/channel_mixer.cpp @@ -27,6 +27,10 @@ using namespace NLMISC; using namespace std; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/clip_trav.cpp b/code/nel/src/3d/clip_trav.cpp index b75abe61e..fc8fa4872 100644 --- a/code/nel/src/3d/clip_trav.cpp +++ b/code/nel/src/3d/clip_trav.cpp @@ -37,6 +37,9 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/cloud_scape.cpp b/code/nel/src/3d/cloud_scape.cpp index 77d046eec..5c40d89ec 100644 --- a/code/nel/src/3d/cloud_scape.cpp +++ b/code/nel/src/3d/cloud_scape.cpp @@ -23,6 +23,10 @@ // ------------------------------------------------------------------------------------------------ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/cloud_scape_user.cpp b/code/nel/src/3d/cloud_scape_user.cpp index 5570ed7eb..1a18a26fa 100644 --- a/code/nel/src/3d/cloud_scape_user.cpp +++ b/code/nel/src/3d/cloud_scape_user.cpp @@ -22,6 +22,9 @@ #include "nel/3d/cloud_scape.h" #include "nel/3d/scene.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/cluster.cpp b/code/nel/src/3d/cluster.cpp index d78468e61..312042364 100644 --- a/code/nel/src/3d/cluster.cpp +++ b/code/nel/src/3d/cluster.cpp @@ -28,6 +28,10 @@ using namespace NLMISC; using namespace std; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/coarse_mesh_build.cpp b/code/nel/src/3d/coarse_mesh_build.cpp index fec5f0b3f..966f389b4 100644 --- a/code/nel/src/3d/coarse_mesh_build.cpp +++ b/code/nel/src/3d/coarse_mesh_build.cpp @@ -23,6 +23,10 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/coarse_mesh_manager.cpp b/code/nel/src/3d/coarse_mesh_manager.cpp index 6ba8b3ec6..2d4792263 100644 --- a/code/nel/src/3d/coarse_mesh_manager.cpp +++ b/code/nel/src/3d/coarse_mesh_manager.cpp @@ -28,6 +28,10 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/computed_string.cpp b/code/nel/src/3d/computed_string.cpp index 6bc1be856..a8f7743b3 100644 --- a/code/nel/src/3d/computed_string.cpp +++ b/code/nel/src/3d/computed_string.cpp @@ -32,6 +32,10 @@ using namespace std; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/cube_map_builder.cpp b/code/nel/src/3d/cube_map_builder.cpp index 6e319b59e..60aec6cdd 100644 --- a/code/nel/src/3d/cube_map_builder.cpp +++ b/code/nel/src/3d/cube_map_builder.cpp @@ -26,6 +26,9 @@ +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/debug_vb.cpp b/code/nel/src/3d/debug_vb.cpp index 39e01b646..b1aebe6e0 100644 --- a/code/nel/src/3d/debug_vb.cpp +++ b/code/nel/src/3d/debug_vb.cpp @@ -19,6 +19,10 @@ #include "nel/3d/vertex_buffer.h" #include "nel/3d/index_buffer.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/deform_2d.cpp b/code/nel/src/3d/deform_2d.cpp index 7a4ffb507..f36f61820 100644 --- a/code/nel/src/3d/deform_2d.cpp +++ b/code/nel/src/3d/deform_2d.cpp @@ -27,6 +27,10 @@ #include "nel/3d/dru.h" #include "nel/3d/material.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/driver.cpp b/code/nel/src/3d/driver.cpp index 3ba0178f2..36d783e78 100644 --- a/code/nel/src/3d/driver.cpp +++ b/code/nel/src/3d/driver.cpp @@ -28,6 +28,10 @@ using namespace NLMISC; using namespace std; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/driver_user.cpp b/code/nel/src/3d/driver_user.cpp index b236223b7..d1a747478 100644 --- a/code/nel/src/3d/driver_user.cpp +++ b/code/nel/src/3d/driver_user.cpp @@ -40,6 +40,10 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/driver_user2.cpp b/code/nel/src/3d/driver_user2.cpp index 1b46ab607..e24391a1c 100644 --- a/code/nel/src/3d/driver_user2.cpp +++ b/code/nel/src/3d/driver_user2.cpp @@ -37,6 +37,9 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/dru.cpp b/code/nel/src/3d/dru.cpp index fd3e77404..15ccbfe01 100644 --- a/code/nel/src/3d/dru.cpp +++ b/code/nel/src/3d/dru.cpp @@ -46,6 +46,10 @@ using namespace NLMISC; using namespace std; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/event_mouse_listener.cpp b/code/nel/src/3d/event_mouse_listener.cpp index cb9fb142e..d81b2bfd4 100644 --- a/code/nel/src/3d/event_mouse_listener.cpp +++ b/code/nel/src/3d/event_mouse_listener.cpp @@ -24,6 +24,10 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/fast_ptr_list.cpp b/code/nel/src/3d/fast_ptr_list.cpp index 753824dae..c9cab1069 100644 --- a/code/nel/src/3d/fast_ptr_list.cpp +++ b/code/nel/src/3d/fast_ptr_list.cpp @@ -20,6 +20,10 @@ using namespace std; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/fasthls_modifier.cpp b/code/nel/src/3d/fasthls_modifier.cpp index 2790e1442..cae414f2c 100644 --- a/code/nel/src/3d/fasthls_modifier.cpp +++ b/code/nel/src/3d/fasthls_modifier.cpp @@ -26,6 +26,9 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/flare_model.cpp b/code/nel/src/3d/flare_model.cpp index c48e754cf..f070bdcec 100644 --- a/code/nel/src/3d/flare_model.cpp +++ b/code/nel/src/3d/flare_model.cpp @@ -30,6 +30,9 @@ #include "nel/misc/common.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/flare_shape.cpp b/code/nel/src/3d/flare_shape.cpp index a3a1d135f..e8f74dc4e 100644 --- a/code/nel/src/3d/flare_shape.cpp +++ b/code/nel/src/3d/flare_shape.cpp @@ -24,6 +24,9 @@ #include "nel/3d/shape_bank.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/font_generator.cpp b/code/nel/src/3d/font_generator.cpp index ce8048f15..0adf29418 100644 --- a/code/nel/src/3d/font_generator.cpp +++ b/code/nel/src/3d/font_generator.cpp @@ -58,6 +58,10 @@ const char* err_msg; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { FT_Library CFontGenerator::_Library = NULL; diff --git a/code/nel/src/3d/font_manager.cpp b/code/nel/src/3d/font_manager.cpp index 7b503099b..3b77a2100 100644 --- a/code/nel/src/3d/font_manager.cpp +++ b/code/nel/src/3d/font_manager.cpp @@ -32,6 +32,10 @@ using namespace std; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/frustum.cpp b/code/nel/src/3d/frustum.cpp index 356673a92..36d28ebb0 100644 --- a/code/nel/src/3d/frustum.cpp +++ b/code/nel/src/3d/frustum.cpp @@ -23,6 +23,10 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/fxaa.cpp b/code/nel/src/3d/fxaa.cpp index 1eff22501..d37a159ef 100644 --- a/code/nel/src/3d/fxaa.cpp +++ b/code/nel/src/3d/fxaa.cpp @@ -49,11 +49,17 @@ using namespace std; namespace NL3D { namespace { - #include "fxaa_program.h" - } /* anonymous namespace */ +} + +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + +namespace NL3D { + CFXAA::CFXAA(NL3D::UDriver *driver) : m_Driver(driver), m_VP(NULL), m_PP(NULL), m_Width(~0), m_Height(~0) { nldebug("3D: Create FXAA"); diff --git a/code/nel/src/3d/geometry_program.cpp b/code/nel/src/3d/geometry_program.cpp index 8f785b6c6..985309a55 100644 --- a/code/nel/src/3d/geometry_program.cpp +++ b/code/nel/src/3d/geometry_program.cpp @@ -27,6 +27,10 @@ #include "nel/3d/driver.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/gpu_program_params.cpp b/code/nel/src/3d/gpu_program_params.cpp index f46ba8713..f7cc6654d 100644 --- a/code/nel/src/3d/gpu_program_params.cpp +++ b/code/nel/src/3d/gpu_program_params.cpp @@ -41,6 +41,10 @@ using namespace std; // using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { const size_t CGPUProgramParams::s_End = -1; diff --git a/code/nel/src/3d/heat_haze.cpp b/code/nel/src/3d/heat_haze.cpp index c42942fe7..03ea4dc06 100644 --- a/code/nel/src/3d/heat_haze.cpp +++ b/code/nel/src/3d/heat_haze.cpp @@ -22,6 +22,10 @@ #include "nel/3d/deform_2d.h" #include "nel/misc/vector_2f.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/height_map.cpp b/code/nel/src/3d/height_map.cpp index 505145376..4236cd15e 100644 --- a/code/nel/src/3d/height_map.cpp +++ b/code/nel/src/3d/height_map.cpp @@ -21,6 +21,9 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/hls_color_texture.cpp b/code/nel/src/3d/hls_color_texture.cpp index 4afd1c5ea..16766b202 100644 --- a/code/nel/src/3d/hls_color_texture.cpp +++ b/code/nel/src/3d/hls_color_texture.cpp @@ -27,6 +27,10 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/hls_texture_bank.cpp b/code/nel/src/3d/hls_texture_bank.cpp index bc7cc7c1f..d7e213cf4 100644 --- a/code/nel/src/3d/hls_texture_bank.cpp +++ b/code/nel/src/3d/hls_texture_bank.cpp @@ -21,6 +21,10 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/hls_texture_manager.cpp b/code/nel/src/3d/hls_texture_manager.cpp index 147238ae7..586ec53ce 100644 --- a/code/nel/src/3d/hls_texture_manager.cpp +++ b/code/nel/src/3d/hls_texture_manager.cpp @@ -22,6 +22,10 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/hrc_trav.cpp b/code/nel/src/3d/hrc_trav.cpp index 9d79ac55d..a4cbc525a 100644 --- a/code/nel/src/3d/hrc_trav.cpp +++ b/code/nel/src/3d/hrc_trav.cpp @@ -23,6 +23,9 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/ig_surface_light.cpp b/code/nel/src/3d/ig_surface_light.cpp index efd5e89a4..ef4a59a46 100644 --- a/code/nel/src/3d/ig_surface_light.cpp +++ b/code/nel/src/3d/ig_surface_light.cpp @@ -18,6 +18,9 @@ #include "nel/3d/ig_surface_light.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/ig_surface_light_build.cpp b/code/nel/src/3d/ig_surface_light_build.cpp index 33a5a33b0..70d66c388 100644 --- a/code/nel/src/3d/ig_surface_light_build.cpp +++ b/code/nel/src/3d/ig_surface_light_build.cpp @@ -23,6 +23,10 @@ using namespace NLMISC; using namespace std; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/index_buffer.cpp b/code/nel/src/3d/index_buffer.cpp index 7bb2e1cd5..e99b1e1e3 100644 --- a/code/nel/src/3d/index_buffer.cpp +++ b/code/nel/src/3d/index_buffer.cpp @@ -23,6 +23,10 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { // *************************************************************************** diff --git a/code/nel/src/3d/init_3d.cpp b/code/nel/src/3d/init_3d.cpp index b2bf2c05e..e34702b74 100644 --- a/code/nel/src/3d/init_3d.cpp +++ b/code/nel/src/3d/init_3d.cpp @@ -22,6 +22,10 @@ #include "nel/3d/scene.h" #include "nel/3d/register_3d.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace { static bool _Initialized = false; diff --git a/code/nel/src/3d/instance_group_user.cpp b/code/nel/src/3d/instance_group_user.cpp index 651e54094..536e14e94 100644 --- a/code/nel/src/3d/instance_group_user.cpp +++ b/code/nel/src/3d/instance_group_user.cpp @@ -29,6 +29,10 @@ using namespace NLMISC; using namespace std; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/instance_lighter.cpp b/code/nel/src/3d/instance_lighter.cpp index d21f80e4e..8e7c16294 100644 --- a/code/nel/src/3d/instance_lighter.cpp +++ b/code/nel/src/3d/instance_lighter.cpp @@ -28,6 +28,10 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/key.cpp b/code/nel/src/3d/key.cpp index e1722bf23..561041175 100644 --- a/code/nel/src/3d/key.cpp +++ b/code/nel/src/3d/key.cpp @@ -18,6 +18,9 @@ #include "nel/3d/key.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/landscape.cpp b/code/nel/src/3d/landscape.cpp index b54bffa28..8112053d7 100644 --- a/code/nel/src/3d/landscape.cpp +++ b/code/nel/src/3d/landscape.cpp @@ -41,6 +41,9 @@ using namespace NLMISC; using namespace std; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D diff --git a/code/nel/src/3d/landscape_collision_grid.cpp b/code/nel/src/3d/landscape_collision_grid.cpp index 07b509a68..1636fc6bd 100644 --- a/code/nel/src/3d/landscape_collision_grid.cpp +++ b/code/nel/src/3d/landscape_collision_grid.cpp @@ -24,6 +24,10 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/landscape_def.cpp b/code/nel/src/3d/landscape_def.cpp index ac545d04b..0c463e167 100644 --- a/code/nel/src/3d/landscape_def.cpp +++ b/code/nel/src/3d/landscape_def.cpp @@ -23,6 +23,10 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/landscape_face_vector_manager.cpp b/code/nel/src/3d/landscape_face_vector_manager.cpp index 955ac3587..0ba4b07cf 100644 --- a/code/nel/src/3d/landscape_face_vector_manager.cpp +++ b/code/nel/src/3d/landscape_face_vector_manager.cpp @@ -23,6 +23,9 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/landscape_model.cpp b/code/nel/src/3d/landscape_model.cpp index ca90bae2e..017b82e51 100644 --- a/code/nel/src/3d/landscape_model.cpp +++ b/code/nel/src/3d/landscape_model.cpp @@ -23,9 +23,14 @@ #include "nel/3d/cluster.h" #include "nel/3d/scene.h" #include "nel/3d/light_trav.h" + using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/landscape_profile.cpp b/code/nel/src/3d/landscape_profile.cpp index 97ccba0b5..3f20ac4d8 100644 --- a/code/nel/src/3d/landscape_profile.cpp +++ b/code/nel/src/3d/landscape_profile.cpp @@ -18,6 +18,9 @@ #include "nel/3d/landscape_profile.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/landscape_user.cpp b/code/nel/src/3d/landscape_user.cpp index fd1bc3747..76d73583f 100644 --- a/code/nel/src/3d/landscape_user.cpp +++ b/code/nel/src/3d/landscape_user.cpp @@ -24,6 +24,10 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/landscape_vegetable_block.cpp b/code/nel/src/3d/landscape_vegetable_block.cpp index 593725828..ec015916b 100644 --- a/code/nel/src/3d/landscape_vegetable_block.cpp +++ b/code/nel/src/3d/landscape_vegetable_block.cpp @@ -27,6 +27,9 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/landscapeig_manager.cpp b/code/nel/src/3d/landscapeig_manager.cpp index 500373360..10eab0f60 100644 --- a/code/nel/src/3d/landscapeig_manager.cpp +++ b/code/nel/src/3d/landscapeig_manager.cpp @@ -36,6 +36,10 @@ H_AUTO_DECL ( NL3D_Unload_Zone_IG ) #define NL3D_HAUTO_LAND_MNGR_LOAD_ZONEIG H_AUTO_USE( NL3D_Load_Zone_IG ) #define NL3D_HAUTO_LAND_MNGR_UNLOAD_ZONEIG H_AUTO_USE( NL3D_Unload_Zone_IG ) +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/landscapevb_allocator.cpp b/code/nel/src/3d/landscapevb_allocator.cpp index c6815ea05..81a91fb12 100644 --- a/code/nel/src/3d/landscapevb_allocator.cpp +++ b/code/nel/src/3d/landscapevb_allocator.cpp @@ -24,6 +24,10 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/landscapevb_info.cpp b/code/nel/src/3d/landscapevb_info.cpp index 46d666ea7..f5955e622 100644 --- a/code/nel/src/3d/landscapevb_info.cpp +++ b/code/nel/src/3d/landscapevb_info.cpp @@ -20,6 +20,9 @@ #include "nel/3d/vertex_buffer.h" #include "nel/3d/landscapevb_allocator.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/light.cpp b/code/nel/src/3d/light.cpp index bd190dc00..ba887a447 100644 --- a/code/nel/src/3d/light.cpp +++ b/code/nel/src/3d/light.cpp @@ -20,6 +20,10 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/light_contribution.cpp b/code/nel/src/3d/light_contribution.cpp index 9e7e3d1ce..240b540b9 100644 --- a/code/nel/src/3d/light_contribution.cpp +++ b/code/nel/src/3d/light_contribution.cpp @@ -18,6 +18,9 @@ #include "nel/3d/light_contribution.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/light_influence_interpolator.cpp b/code/nel/src/3d/light_influence_interpolator.cpp index 2875abaac..d6e90bd18 100644 --- a/code/nel/src/3d/light_influence_interpolator.cpp +++ b/code/nel/src/3d/light_influence_interpolator.cpp @@ -20,6 +20,9 @@ #include "nel/misc/debug.h" #include "nel/3d/point_light_named.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/light_trav.cpp b/code/nel/src/3d/light_trav.cpp index 0e31d1558..42c2e2aa5 100644 --- a/code/nel/src/3d/light_trav.cpp +++ b/code/nel/src/3d/light_trav.cpp @@ -27,12 +27,13 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { -using namespace NLMISC; - // *************************************************************************** CLightTrav::CLightTrav(bool bSmallScene) : LightingManager(bSmallScene) { diff --git a/code/nel/src/3d/light_user.cpp b/code/nel/src/3d/light_user.cpp index 14f5b463a..a74e2bd02 100644 --- a/code/nel/src/3d/light_user.cpp +++ b/code/nel/src/3d/light_user.cpp @@ -18,6 +18,9 @@ #include "nel/3d/light_user.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/lighting_manager.cpp b/code/nel/src/3d/lighting_manager.cpp index 0f528d5fb..dcf6eff80 100644 --- a/code/nel/src/3d/lighting_manager.cpp +++ b/code/nel/src/3d/lighting_manager.cpp @@ -28,6 +28,9 @@ using namespace NLMISC; using namespace std; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/load_balancing_trav.cpp b/code/nel/src/3d/load_balancing_trav.cpp index a9f289d11..1e983a2a5 100644 --- a/code/nel/src/3d/load_balancing_trav.cpp +++ b/code/nel/src/3d/load_balancing_trav.cpp @@ -32,6 +32,10 @@ using namespace NLMISC; #define NL3D_DEFAULT_LOADBALANCING_VALUE_SMOOTHER 50 #define NL3D_LOADBALANCING_SMOOTHER_MAX_RATIO 1.1f +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/lod_character_builder.cpp b/code/nel/src/3d/lod_character_builder.cpp index 6b0b6e51b..05eef0b30 100644 --- a/code/nel/src/3d/lod_character_builder.cpp +++ b/code/nel/src/3d/lod_character_builder.cpp @@ -27,6 +27,9 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/lod_character_instance.cpp b/code/nel/src/3d/lod_character_instance.cpp index 7c0d7a0b9..09940184b 100644 --- a/code/nel/src/3d/lod_character_instance.cpp +++ b/code/nel/src/3d/lod_character_instance.cpp @@ -18,6 +18,9 @@ #include "nel/3d/lod_character_instance.h" #include "nel/3d/lod_character_manager.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/lod_character_manager.cpp b/code/nel/src/3d/lod_character_manager.cpp index 48c2a500f..92dee846a 100644 --- a/code/nel/src/3d/lod_character_manager.cpp +++ b/code/nel/src/3d/lod_character_manager.cpp @@ -34,6 +34,10 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/lod_character_shape.cpp b/code/nel/src/3d/lod_character_shape.cpp index 02d15ce03..21e1cce7f 100644 --- a/code/nel/src/3d/lod_character_shape.cpp +++ b/code/nel/src/3d/lod_character_shape.cpp @@ -28,6 +28,9 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/lod_character_shape_bank.cpp b/code/nel/src/3d/lod_character_shape_bank.cpp index 018b336f3..f8fdd1a22 100644 --- a/code/nel/src/3d/lod_character_shape_bank.cpp +++ b/code/nel/src/3d/lod_character_shape_bank.cpp @@ -23,6 +23,10 @@ using namespace NLMISC; using namespace std; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/lod_character_texture.cpp b/code/nel/src/3d/lod_character_texture.cpp index 5876da48f..2f91861d2 100644 --- a/code/nel/src/3d/lod_character_texture.cpp +++ b/code/nel/src/3d/lod_character_texture.cpp @@ -18,6 +18,9 @@ #include "std3d.h" #include "nel/3d/lod_character_texture.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/logic_info.cpp b/code/nel/src/3d/logic_info.cpp index 4202eb863..7599b0917 100644 --- a/code/nel/src/3d/logic_info.cpp +++ b/code/nel/src/3d/logic_info.cpp @@ -18,6 +18,9 @@ #include "nel/3d/logic_info.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/material.cpp b/code/nel/src/3d/material.cpp index 3204a620d..3cae5dd30 100644 --- a/code/nel/src/3d/material.cpp +++ b/code/nel/src/3d/material.cpp @@ -24,6 +24,10 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/mesh.cpp b/code/nel/src/3d/mesh.cpp index 3595c962d..eddb86391 100644 --- a/code/nel/src/3d/mesh.cpp +++ b/code/nel/src/3d/mesh.cpp @@ -36,6 +36,9 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/mesh_base.cpp b/code/nel/src/3d/mesh_base.cpp index f355b7271..3e11e7bfe 100644 --- a/code/nel/src/3d/mesh_base.cpp +++ b/code/nel/src/3d/mesh_base.cpp @@ -25,6 +25,9 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/mesh_base_instance.cpp b/code/nel/src/3d/mesh_base_instance.cpp index 566bebbb1..33037393e 100644 --- a/code/nel/src/3d/mesh_base_instance.cpp +++ b/code/nel/src/3d/mesh_base_instance.cpp @@ -29,6 +29,10 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/mesh_blender.cpp b/code/nel/src/3d/mesh_blender.cpp index 866ba5048..ec4b74015 100644 --- a/code/nel/src/3d/mesh_blender.cpp +++ b/code/nel/src/3d/mesh_blender.cpp @@ -20,6 +20,9 @@ #include "nel/3d/driver.h" #include "nel/misc/fast_floor.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/mesh_block_manager.cpp b/code/nel/src/3d/mesh_block_manager.cpp index c672e6436..64a24cbfb 100644 --- a/code/nel/src/3d/mesh_block_manager.cpp +++ b/code/nel/src/3d/mesh_block_manager.cpp @@ -21,6 +21,10 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/mesh_geom.cpp b/code/nel/src/3d/mesh_geom.cpp index 53eac4967..e8a34f4c5 100644 --- a/code/nel/src/3d/mesh_geom.cpp +++ b/code/nel/src/3d/mesh_geom.cpp @@ -19,6 +19,9 @@ #include "nel/3d/mesh_geom.h" #include "nel/3d/mesh_block_manager.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/mesh_instance.cpp b/code/nel/src/3d/mesh_instance.cpp index 5ce134675..eef6e92a5 100644 --- a/code/nel/src/3d/mesh_instance.cpp +++ b/code/nel/src/3d/mesh_instance.cpp @@ -26,6 +26,10 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/mesh_morpher.cpp b/code/nel/src/3d/mesh_morpher.cpp index 39f44a130..4840f36a2 100644 --- a/code/nel/src/3d/mesh_morpher.cpp +++ b/code/nel/src/3d/mesh_morpher.cpp @@ -24,6 +24,9 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/mesh_mrm.cpp b/code/nel/src/3d/mesh_mrm.cpp index e5b61c966..64646ebc1 100644 --- a/code/nel/src/3d/mesh_mrm.cpp +++ b/code/nel/src/3d/mesh_mrm.cpp @@ -38,6 +38,9 @@ using namespace NLMISC; using namespace std; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/mesh_mrm_instance.cpp b/code/nel/src/3d/mesh_mrm_instance.cpp index d97de135f..94acd1fe8 100644 --- a/code/nel/src/3d/mesh_mrm_instance.cpp +++ b/code/nel/src/3d/mesh_mrm_instance.cpp @@ -27,6 +27,10 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/mesh_mrm_skin_template.cpp b/code/nel/src/3d/mesh_mrm_skin_template.cpp index 63a0b67e8..792b8c5dc 100644 --- a/code/nel/src/3d/mesh_mrm_skin_template.cpp +++ b/code/nel/src/3d/mesh_mrm_skin_template.cpp @@ -20,6 +20,10 @@ #include "std3d.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + // ace: before including this, #define this define to use it // the goal is to be able to compile every .cpp file with no // special case (GNU/Linux needs) diff --git a/code/nel/src/3d/mesh_mrm_skinned.cpp b/code/nel/src/3d/mesh_mrm_skinned.cpp index 11a1b41fc..ebe50d3ec 100644 --- a/code/nel/src/3d/mesh_mrm_skinned.cpp +++ b/code/nel/src/3d/mesh_mrm_skinned.cpp @@ -39,6 +39,9 @@ using namespace NLMISC; using namespace std; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/mesh_mrm_skinned_instance.cpp b/code/nel/src/3d/mesh_mrm_skinned_instance.cpp index a07cb5875..02c277571 100644 --- a/code/nel/src/3d/mesh_mrm_skinned_instance.cpp +++ b/code/nel/src/3d/mesh_mrm_skinned_instance.cpp @@ -27,6 +27,10 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/mesh_mrm_skinned_template.cpp b/code/nel/src/3d/mesh_mrm_skinned_template.cpp index 5d1b2f582..c6d25810e 100644 --- a/code/nel/src/3d/mesh_mrm_skinned_template.cpp +++ b/code/nel/src/3d/mesh_mrm_skinned_template.cpp @@ -20,6 +20,10 @@ #include "std3d.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + // *************************************************************************** // *************************************************************************** // Raw "Vertex/Normal only" ApplySkin methods. diff --git a/code/nel/src/3d/mesh_multi_lod.cpp b/code/nel/src/3d/mesh_multi_lod.cpp index e26632f6e..f200e2bc6 100644 --- a/code/nel/src/3d/mesh_multi_lod.cpp +++ b/code/nel/src/3d/mesh_multi_lod.cpp @@ -35,6 +35,9 @@ using namespace std; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/mesh_multi_lod_instance.cpp b/code/nel/src/3d/mesh_multi_lod_instance.cpp index c6c8fa237..cf7805788 100644 --- a/code/nel/src/3d/mesh_multi_lod_instance.cpp +++ b/code/nel/src/3d/mesh_multi_lod_instance.cpp @@ -25,6 +25,10 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/meshvp_per_pixel_light.cpp b/code/nel/src/3d/meshvp_per_pixel_light.cpp index 9c5285bbd..6bbcec5c6 100644 --- a/code/nel/src/3d/meshvp_per_pixel_light.cpp +++ b/code/nel/src/3d/meshvp_per_pixel_light.cpp @@ -29,6 +29,9 @@ #include +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/meshvp_wind_tree.cpp b/code/nel/src/3d/meshvp_wind_tree.cpp index 1e3d215a3..1b81af721 100644 --- a/code/nel/src/3d/meshvp_wind_tree.cpp +++ b/code/nel/src/3d/meshvp_wind_tree.cpp @@ -28,6 +28,9 @@ using namespace NLMISC; using namespace std; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/mini_col.cpp b/code/nel/src/3d/mini_col.cpp index 8b847afbf..e2c266349 100644 --- a/code/nel/src/3d/mini_col.cpp +++ b/code/nel/src/3d/mini_col.cpp @@ -19,9 +19,13 @@ #include "nel/3d/mini_col.h" #include "nel/misc/aabbox.h" #include "nel/3d/quad_grid.h" + using namespace NLMISC; using namespace std; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/motion_blur.cpp b/code/nel/src/3d/motion_blur.cpp index e9fe1fdab..410ac8610 100644 --- a/code/nel/src/3d/motion_blur.cpp +++ b/code/nel/src/3d/motion_blur.cpp @@ -23,6 +23,9 @@ #include "nel/3d/texture_blank.h" #include "nel/3d/material.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/mrm_builder.cpp b/code/nel/src/3d/mrm_builder.cpp index 3035aa78b..b035cae88 100644 --- a/code/nel/src/3d/mrm_builder.cpp +++ b/code/nel/src/3d/mrm_builder.cpp @@ -18,9 +18,13 @@ #include "nel/3d/mrm_builder.h" #include "nel/3d/mrm_parameters.h" + using namespace NLMISC; using namespace std; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/mrm_internal.cpp b/code/nel/src/3d/mrm_internal.cpp index b524fcf08..75a83874d 100644 --- a/code/nel/src/3d/mrm_internal.cpp +++ b/code/nel/src/3d/mrm_internal.cpp @@ -23,6 +23,9 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/mrm_level_detail.cpp b/code/nel/src/3d/mrm_level_detail.cpp index 3314ec76e..4943b6e09 100644 --- a/code/nel/src/3d/mrm_level_detail.cpp +++ b/code/nel/src/3d/mrm_level_detail.cpp @@ -19,6 +19,9 @@ #include "nel/3d/mrm_level_detail.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/mrm_mesh.cpp b/code/nel/src/3d/mrm_mesh.cpp index 0ad2f127f..03cdebeee 100644 --- a/code/nel/src/3d/mrm_mesh.cpp +++ b/code/nel/src/3d/mrm_mesh.cpp @@ -21,6 +21,10 @@ using namespace std; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/nelu.cpp b/code/nel/src/3d/nelu.cpp index 6417e5abc..8cb6e0968 100644 --- a/code/nel/src/3d/nelu.cpp +++ b/code/nel/src/3d/nelu.cpp @@ -30,6 +30,9 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/noise_3d.cpp b/code/nel/src/3d/noise_3d.cpp index 5900e4750..3c5257c49 100644 --- a/code/nel/src/3d/noise_3d.cpp +++ b/code/nel/src/3d/noise_3d.cpp @@ -20,6 +20,10 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/packed_world.cpp b/code/nel/src/3d/packed_world.cpp index 15d59c724..f1ad22ab2 100644 --- a/code/nel/src/3d/packed_world.cpp +++ b/code/nel/src/3d/packed_world.cpp @@ -23,6 +23,10 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/packed_zone.cpp b/code/nel/src/3d/packed_zone.cpp index 1c6bf4817..dbc9b2d1d 100644 --- a/code/nel/src/3d/packed_zone.cpp +++ b/code/nel/src/3d/packed_zone.cpp @@ -35,6 +35,10 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/particle_system.cpp b/code/nel/src/3d/particle_system.cpp index 34b75d427..b50ffa8a2 100644 --- a/code/nel/src/3d/particle_system.cpp +++ b/code/nel/src/3d/particle_system.cpp @@ -45,6 +45,9 @@ #define CHECK_INTEGRITY #endif +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif diff --git a/code/nel/src/3d/particle_system_manager.cpp b/code/nel/src/3d/particle_system_manager.cpp index e2e0eed8d..5778b2898 100644 --- a/code/nel/src/3d/particle_system_manager.cpp +++ b/code/nel/src/3d/particle_system_manager.cpp @@ -21,6 +21,9 @@ #include "nel/3d/scene.h" #include "nel/3d/skeleton_model.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/particle_system_model.cpp b/code/nel/src/3d/particle_system_model.cpp index 8b7f7d142..7736b7233 100644 --- a/code/nel/src/3d/particle_system_model.cpp +++ b/code/nel/src/3d/particle_system_model.cpp @@ -32,6 +32,9 @@ +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/particle_system_process.cpp b/code/nel/src/3d/particle_system_process.cpp index b0340ea0b..8150d56d1 100644 --- a/code/nel/src/3d/particle_system_process.cpp +++ b/code/nel/src/3d/particle_system_process.cpp @@ -19,6 +19,10 @@ #include "nel/3d/particle_system_process.h" #include "nel/3d/particle_system.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + uint PSEnterLeaveDepth = 0; uint PSEnterLeaveMaxDepth = 1; std::string PSCurrName; diff --git a/code/nel/src/3d/particle_system_shape.cpp b/code/nel/src/3d/particle_system_shape.cpp index 7acbea6d4..94851c3eb 100644 --- a/code/nel/src/3d/particle_system_shape.cpp +++ b/code/nel/src/3d/particle_system_shape.cpp @@ -33,6 +33,10 @@ #include "nel/3d/ps_face_look_at.h" #include "nel/3d/ps_force.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/particle_system_sound_user.cpp b/code/nel/src/3d/particle_system_sound_user.cpp index b2ea9587e..5916bc964 100644 --- a/code/nel/src/3d/particle_system_sound_user.cpp +++ b/code/nel/src/3d/particle_system_sound_user.cpp @@ -23,6 +23,9 @@ #include "nel/3d/u_ps_sound_interface.h" #include "nel/3d/u_ps_sound_impl.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/patch.cpp b/code/nel/src/3d/patch.cpp index 4b0253ead..29f960a28 100644 --- a/code/nel/src/3d/patch.cpp +++ b/code/nel/src/3d/patch.cpp @@ -38,6 +38,10 @@ using namespace NLMISC; // Define this to remove user color (debug) // #define NEL_FORCE_NO_USER_COLOR +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/patch_lightmap.cpp b/code/nel/src/3d/patch_lightmap.cpp index bc14c7917..7a47085dd 100644 --- a/code/nel/src/3d/patch_lightmap.cpp +++ b/code/nel/src/3d/patch_lightmap.cpp @@ -30,9 +30,13 @@ #include "nel/misc/fast_floor.h" #include "nel/3d/light_influence_interpolator.h" #include "nel/3d/patchdlm_context.h" + using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/patch_noise.cpp b/code/nel/src/3d/patch_noise.cpp index ed87f2fe0..f0a491346 100644 --- a/code/nel/src/3d/patch_noise.cpp +++ b/code/nel/src/3d/patch_noise.cpp @@ -26,9 +26,13 @@ #include "nel/misc/common.h" #include "nel/3d/tile_noise_map.h" #include "nel/3d/patchuv_locator.h" + using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/patch_rdr_pass.cpp b/code/nel/src/3d/patch_rdr_pass.cpp index ada89ce35..607d8b4cf 100644 --- a/code/nel/src/3d/patch_rdr_pass.cpp +++ b/code/nel/src/3d/patch_rdr_pass.cpp @@ -19,6 +19,9 @@ #include "nel/3d/patch_rdr_pass.h" #include "nel/3d/index_buffer.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/patch_render.cpp b/code/nel/src/3d/patch_render.cpp index 59978a94d..de5d0b4ec 100644 --- a/code/nel/src/3d/patch_render.cpp +++ b/code/nel/src/3d/patch_render.cpp @@ -32,6 +32,9 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/patch_vegetable.cpp b/code/nel/src/3d/patch_vegetable.cpp index 6729d3625..385b6f615 100644 --- a/code/nel/src/3d/patch_vegetable.cpp +++ b/code/nel/src/3d/patch_vegetable.cpp @@ -33,6 +33,10 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/patchdlm_context.cpp b/code/nel/src/3d/patchdlm_context.cpp index f7d2236e8..54a34dd92 100644 --- a/code/nel/src/3d/patchdlm_context.cpp +++ b/code/nel/src/3d/patchdlm_context.cpp @@ -31,6 +31,10 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/patchuv_locator.cpp b/code/nel/src/3d/patchuv_locator.cpp index 697ccfb72..b4743c4c1 100644 --- a/code/nel/src/3d/patchuv_locator.cpp +++ b/code/nel/src/3d/patchuv_locator.cpp @@ -21,6 +21,10 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/pixel_program.cpp b/code/nel/src/3d/pixel_program.cpp index 120e7def6..a11344055 100644 --- a/code/nel/src/3d/pixel_program.cpp +++ b/code/nel/src/3d/pixel_program.cpp @@ -27,6 +27,10 @@ #include "nel/3d/driver.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/play_list_manager.cpp b/code/nel/src/3d/play_list_manager.cpp index 636336cf3..0648984c5 100644 --- a/code/nel/src/3d/play_list_manager.cpp +++ b/code/nel/src/3d/play_list_manager.cpp @@ -18,6 +18,9 @@ #include "nel/3d/play_list_manager.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/play_list_manager_user.cpp b/code/nel/src/3d/play_list_manager_user.cpp index c6991e914..4248a753f 100644 --- a/code/nel/src/3d/play_list_manager_user.cpp +++ b/code/nel/src/3d/play_list_manager_user.cpp @@ -21,6 +21,10 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/play_list_user.cpp b/code/nel/src/3d/play_list_user.cpp index 9f9d0c688..6f2a2773d 100644 --- a/code/nel/src/3d/play_list_user.cpp +++ b/code/nel/src/3d/play_list_user.cpp @@ -26,6 +26,10 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/point_light.cpp b/code/nel/src/3d/point_light.cpp index e441e198e..ff0527689 100644 --- a/code/nel/src/3d/point_light.cpp +++ b/code/nel/src/3d/point_light.cpp @@ -24,6 +24,10 @@ using namespace NLMISC; using namespace std; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/point_light_model.cpp b/code/nel/src/3d/point_light_model.cpp index df7e38234..17bb18619 100644 --- a/code/nel/src/3d/point_light_model.cpp +++ b/code/nel/src/3d/point_light_model.cpp @@ -25,6 +25,9 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/point_light_named.cpp b/code/nel/src/3d/point_light_named.cpp index ffee29eb8..f4a6a9cac 100644 --- a/code/nel/src/3d/point_light_named.cpp +++ b/code/nel/src/3d/point_light_named.cpp @@ -18,6 +18,9 @@ #include "nel/3d/point_light_named.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/point_light_named_array.cpp b/code/nel/src/3d/point_light_named_array.cpp index 0b91d7c46..460da282e 100644 --- a/code/nel/src/3d/point_light_named_array.cpp +++ b/code/nel/src/3d/point_light_named_array.cpp @@ -23,6 +23,10 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/portal.cpp b/code/nel/src/3d/portal.cpp index 62df832db..096dcd129 100644 --- a/code/nel/src/3d/portal.cpp +++ b/code/nel/src/3d/portal.cpp @@ -29,6 +29,10 @@ using namespace NLMISC; using namespace std; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/primitive_profile.cpp b/code/nel/src/3d/primitive_profile.cpp index ea23dbe1d..06b0c3bae 100644 --- a/code/nel/src/3d/primitive_profile.cpp +++ b/code/nel/src/3d/primitive_profile.cpp @@ -18,6 +18,9 @@ #include "nel/3d/primitive_profile.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/program.cpp b/code/nel/src/3d/program.cpp index 738b57550..7758feec6 100644 --- a/code/nel/src/3d/program.cpp +++ b/code/nel/src/3d/program.cpp @@ -42,6 +42,10 @@ using namespace std; // using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { // *************************************************************************** diff --git a/code/nel/src/3d/ps_allocator.cpp b/code/nel/src/3d/ps_allocator.cpp index dd79c750f..eb01e4754 100644 --- a/code/nel/src/3d/ps_allocator.cpp +++ b/code/nel/src/3d/ps_allocator.cpp @@ -18,6 +18,10 @@ #include "nel/3d/particle_system_process.h" #include "nel/3d/ps_allocator.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { #ifdef PS_FAST_ALLOC diff --git a/code/nel/src/3d/ps_attrib_maker_bin_op.cpp b/code/nel/src/3d/ps_attrib_maker_bin_op.cpp index 8c029e407..a4e91163d 100644 --- a/code/nel/src/3d/ps_attrib_maker_bin_op.cpp +++ b/code/nel/src/3d/ps_attrib_maker_bin_op.cpp @@ -18,6 +18,9 @@ #include "nel/3d/ps_attrib_maker_bin_op.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/ps_attrib_maker_helper.cpp b/code/nel/src/3d/ps_attrib_maker_helper.cpp index da1b96f94..56dd0ec84 100644 --- a/code/nel/src/3d/ps_attrib_maker_helper.cpp +++ b/code/nel/src/3d/ps_attrib_maker_helper.cpp @@ -17,6 +17,10 @@ #include "std3d.h" #include "nel/3d/ps_attrib_maker_helper.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/ps_attrib_maker_template.cpp b/code/nel/src/3d/ps_attrib_maker_template.cpp index 7790b8052..66fe5912d 100644 --- a/code/nel/src/3d/ps_attrib_maker_template.cpp +++ b/code/nel/src/3d/ps_attrib_maker_template.cpp @@ -18,6 +18,9 @@ #include "nel/3d/ps_attrib_maker_template.h" #include "nel/misc/system_info.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/ps_color.cpp b/code/nel/src/3d/ps_color.cpp index f8014fe67..4fbda508a 100644 --- a/code/nel/src/3d/ps_color.cpp +++ b/code/nel/src/3d/ps_color.cpp @@ -19,6 +19,9 @@ #include "nel/3d/ps_color.h" #include "nel/3d/ps_register_color_attribs.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/ps_dot.cpp b/code/nel/src/3d/ps_dot.cpp index 3711ff50e..bf1f51b4d 100644 --- a/code/nel/src/3d/ps_dot.cpp +++ b/code/nel/src/3d/ps_dot.cpp @@ -25,6 +25,10 @@ #include "nel/misc/fast_mem.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/ps_emitter.cpp b/code/nel/src/3d/ps_emitter.cpp index a976ea5c4..7fb5a6516 100644 --- a/code/nel/src/3d/ps_emitter.cpp +++ b/code/nel/src/3d/ps_emitter.cpp @@ -22,6 +22,10 @@ #include "nel/3d/dru.h" #include "nel/3d/particle_system.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/ps_face.cpp b/code/nel/src/3d/ps_face.cpp index 818522897..0d3ce6482 100644 --- a/code/nel/src/3d/ps_face.cpp +++ b/code/nel/src/3d/ps_face.cpp @@ -25,6 +25,9 @@ #include "nel/misc/quat.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/ps_face_look_at.cpp b/code/nel/src/3d/ps_face_look_at.cpp index 32cd7c248..d6ac0ec0f 100644 --- a/code/nel/src/3d/ps_face_look_at.cpp +++ b/code/nel/src/3d/ps_face_look_at.cpp @@ -25,6 +25,9 @@ #include "nel/misc/fast_floor.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/ps_fan_light.cpp b/code/nel/src/3d/ps_fan_light.cpp index 7f4f789a0..6296373b6 100644 --- a/code/nel/src/3d/ps_fan_light.cpp +++ b/code/nel/src/3d/ps_fan_light.cpp @@ -25,6 +25,9 @@ #include "nel/3d/debug_vb.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/ps_float.cpp b/code/nel/src/3d/ps_float.cpp index 079b98e43..f4f0a7226 100644 --- a/code/nel/src/3d/ps_float.cpp +++ b/code/nel/src/3d/ps_float.cpp @@ -20,6 +20,10 @@ #include "nel/3d/ps_register_float_attribs.h" #include "nel/misc/fast_floor.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/ps_force.cpp b/code/nel/src/3d/ps_force.cpp index bbef28663..bf0ca662d 100644 --- a/code/nel/src/3d/ps_force.cpp +++ b/code/nel/src/3d/ps_force.cpp @@ -28,6 +28,10 @@ #include "nel/3d/ps_util.h" #include "nel/3d/ps_misc.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/ps_int.cpp b/code/nel/src/3d/ps_int.cpp index 8c19bb0c0..ff1f3cc4a 100644 --- a/code/nel/src/3d/ps_int.cpp +++ b/code/nel/src/3d/ps_int.cpp @@ -19,6 +19,9 @@ #include "nel/3d/ps_int.h" #include "nel/3d/ps_register_int_attribs.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/ps_light.cpp b/code/nel/src/3d/ps_light.cpp index 3cbe644be..034a5bfcb 100644 --- a/code/nel/src/3d/ps_light.cpp +++ b/code/nel/src/3d/ps_light.cpp @@ -25,6 +25,10 @@ #include "nel/misc/matrix.h" #include "nel/misc/vector.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/ps_located.cpp b/code/nel/src/3d/ps_located.cpp index 6572a5b23..5f9920eda 100644 --- a/code/nel/src/3d/ps_located.cpp +++ b/code/nel/src/3d/ps_located.cpp @@ -48,6 +48,10 @@ #define CHECK_PS_INTEGRITY #endif +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/ps_mesh.cpp b/code/nel/src/3d/ps_mesh.cpp index 655534c6c..8a9429a7d 100644 --- a/code/nel/src/3d/ps_mesh.cpp +++ b/code/nel/src/3d/ps_mesh.cpp @@ -34,6 +34,10 @@ #include "nel/misc/stream.h" #include "nel/misc/path.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/ps_particle_basic.cpp b/code/nel/src/3d/ps_particle_basic.cpp index c2d6b6357..42e4d31c6 100644 --- a/code/nel/src/3d/ps_particle_basic.cpp +++ b/code/nel/src/3d/ps_particle_basic.cpp @@ -25,6 +25,9 @@ #include "nel/3d/particle_system.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/ps_plane_basis_maker.cpp b/code/nel/src/3d/ps_plane_basis_maker.cpp index f1ca718b9..bdc99cd18 100644 --- a/code/nel/src/3d/ps_plane_basis_maker.cpp +++ b/code/nel/src/3d/ps_plane_basis_maker.cpp @@ -20,6 +20,10 @@ #include "nel/3d/ps_plane_basis_maker.h" #include "nel/3d/ps_register_plane_basis_attribs.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/ps_quad.cpp b/code/nel/src/3d/ps_quad.cpp index c517063e0..295c31c93 100644 --- a/code/nel/src/3d/ps_quad.cpp +++ b/code/nel/src/3d/ps_quad.cpp @@ -24,6 +24,10 @@ #include "nel/3d/particle_system.h" #include "nel/3d/ps_iterator.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/ps_register_attribs.cpp b/code/nel/src/3d/ps_register_attribs.cpp index 184c2f467..7fb616178 100644 --- a/code/nel/src/3d/ps_register_attribs.cpp +++ b/code/nel/src/3d/ps_register_attribs.cpp @@ -25,7 +25,9 @@ #include "nel/3d/ps_register_plane_basis_attribs.h" - +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/ps_register_emitters.cpp b/code/nel/src/3d/ps_register_emitters.cpp index f5c0def3a..e2793f388 100644 --- a/code/nel/src/3d/ps_register_emitters.cpp +++ b/code/nel/src/3d/ps_register_emitters.cpp @@ -21,6 +21,9 @@ #include "nel/3d/ps_emitter.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/ps_register_forces.cpp b/code/nel/src/3d/ps_register_forces.cpp index cb41f1fb8..7d9b1bcff 100644 --- a/code/nel/src/3d/ps_register_forces.cpp +++ b/code/nel/src/3d/ps_register_forces.cpp @@ -19,6 +19,10 @@ #include "nel/3d/ps_util.h" #include "nel/3d/ps_force.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { void CPSUtil::registerForces() diff --git a/code/nel/src/3d/ps_register_particles.cpp b/code/nel/src/3d/ps_register_particles.cpp index 6809d8c66..adbce5d36 100644 --- a/code/nel/src/3d/ps_register_particles.cpp +++ b/code/nel/src/3d/ps_register_particles.cpp @@ -22,6 +22,9 @@ #include "nel/3d/ps_particle2.h" #include "nel/3d/ps_mesh.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/ps_register_zones.cpp b/code/nel/src/3d/ps_register_zones.cpp index 8996eaf99..73b28c0fb 100644 --- a/code/nel/src/3d/ps_register_zones.cpp +++ b/code/nel/src/3d/ps_register_zones.cpp @@ -21,6 +21,9 @@ #include "nel/3d/ps_zone.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/ps_ribbon.cpp b/code/nel/src/3d/ps_ribbon.cpp index 00a3d1310..06bb08787 100644 --- a/code/nel/src/3d/ps_ribbon.cpp +++ b/code/nel/src/3d/ps_ribbon.cpp @@ -24,6 +24,10 @@ #include "nel/3d/texture_mem.h" #include "nel/misc/matrix.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/ps_ribbon_base.cpp b/code/nel/src/3d/ps_ribbon_base.cpp index 8f602b931..a3f70253b 100644 --- a/code/nel/src/3d/ps_ribbon_base.cpp +++ b/code/nel/src/3d/ps_ribbon_base.cpp @@ -22,6 +22,10 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/ps_ribbon_look_at.cpp b/code/nel/src/3d/ps_ribbon_look_at.cpp index 7fece0e3d..2e03acaf6 100644 --- a/code/nel/src/3d/ps_ribbon_look_at.cpp +++ b/code/nel/src/3d/ps_ribbon_look_at.cpp @@ -22,6 +22,10 @@ #include "nel/3d/driver.h" #include "nel/3d/debug_vb.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/ps_shockwave.cpp b/code/nel/src/3d/ps_shockwave.cpp index 44f91d208..dc94f5f96 100644 --- a/code/nel/src/3d/ps_shockwave.cpp +++ b/code/nel/src/3d/ps_shockwave.cpp @@ -24,6 +24,9 @@ #include "nel/3d/particle_system.h" #include "nel/3d/debug_vb.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/ps_sound.cpp b/code/nel/src/3d/ps_sound.cpp index a1705d907..873b3ed34 100644 --- a/code/nel/src/3d/ps_sound.cpp +++ b/code/nel/src/3d/ps_sound.cpp @@ -23,6 +23,10 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/ps_tail_dot.cpp b/code/nel/src/3d/ps_tail_dot.cpp index cf9baa016..69caa8f71 100644 --- a/code/nel/src/3d/ps_tail_dot.cpp +++ b/code/nel/src/3d/ps_tail_dot.cpp @@ -25,6 +25,10 @@ #include +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { static NLMISC::CRGBA GradientB2W[] = {NLMISC::CRGBA(0, 0, 0, 0), NLMISC::CRGBA(255, 255, 255, 255) }; diff --git a/code/nel/src/3d/ps_util.cpp b/code/nel/src/3d/ps_util.cpp index 94d67c777..b25f10e10 100644 --- a/code/nel/src/3d/ps_util.cpp +++ b/code/nel/src/3d/ps_util.cpp @@ -39,6 +39,9 @@ #include "nel/3d/particle_system_shape.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/ps_zone.cpp b/code/nel/src/3d/ps_zone.cpp index 30349906f..55a65d68f 100644 --- a/code/nel/src/3d/ps_zone.cpp +++ b/code/nel/src/3d/ps_zone.cpp @@ -32,6 +32,10 @@ #include #include +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/quad_effect.cpp b/code/nel/src/3d/quad_effect.cpp index a6c75c99d..63fd0565c 100644 --- a/code/nel/src/3d/quad_effect.cpp +++ b/code/nel/src/3d/quad_effect.cpp @@ -20,6 +20,10 @@ #include #include +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/quad_grid.cpp b/code/nel/src/3d/quad_grid.cpp index fca3ab95e..0240b4d0f 100644 --- a/code/nel/src/3d/quad_grid.cpp +++ b/code/nel/src/3d/quad_grid.cpp @@ -17,6 +17,10 @@ #include "std3d.h" #include "nel/3d/quad_grid.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { NLMISC::CPolygon2D CQuadGridBase::_ScaledPoly; diff --git a/code/nel/src/3d/raw_skin.cpp b/code/nel/src/3d/raw_skin.cpp index 5ed069d50..e6788aa71 100644 --- a/code/nel/src/3d/raw_skin.cpp +++ b/code/nel/src/3d/raw_skin.cpp @@ -20,6 +20,10 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/raw_skinned.cpp b/code/nel/src/3d/raw_skinned.cpp index 3625ea928..5f05d5fb2 100644 --- a/code/nel/src/3d/raw_skinned.cpp +++ b/code/nel/src/3d/raw_skinned.cpp @@ -20,6 +20,10 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/ray_mesh.cpp b/code/nel/src/3d/ray_mesh.cpp index ca6b9b09d..3ba3461ee 100644 --- a/code/nel/src/3d/ray_mesh.cpp +++ b/code/nel/src/3d/ray_mesh.cpp @@ -26,6 +26,10 @@ using namespace NLMISC; using namespace std; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/register_3d.cpp b/code/nel/src/3d/register_3d.cpp index 2e9edbf41..82ac4502e 100644 --- a/code/nel/src/3d/register_3d.cpp +++ b/code/nel/src/3d/register_3d.cpp @@ -45,6 +45,9 @@ #include "nel/3d/packed_zone.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/render_target_manager.cpp b/code/nel/src/3d/render_target_manager.cpp index 4b552c62e..8112686fb 100644 --- a/code/nel/src/3d/render_target_manager.cpp +++ b/code/nel/src/3d/render_target_manager.cpp @@ -46,6 +46,10 @@ using namespace std; // using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { struct CRenderTargetDescInt diff --git a/code/nel/src/3d/render_trav.cpp b/code/nel/src/3d/render_trav.cpp index 0a9aa7a5f..cab2e3c00 100644 --- a/code/nel/src/3d/render_trav.cpp +++ b/code/nel/src/3d/render_trav.cpp @@ -39,6 +39,10 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/root_model.cpp b/code/nel/src/3d/root_model.cpp index cf6d68876..b1ff66cc8 100644 --- a/code/nel/src/3d/root_model.cpp +++ b/code/nel/src/3d/root_model.cpp @@ -19,6 +19,9 @@ #include "nel/3d/root_model.h" #include "nel/3d/scene.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/scene.cpp b/code/nel/src/3d/scene.cpp index 7c552efd4..25d9695c0 100644 --- a/code/nel/src/3d/scene.cpp +++ b/code/nel/src/3d/scene.cpp @@ -66,6 +66,10 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + #define NL3D_SCENE_COARSE_MANAGER_TEXTURE "nel_coarse_texture.tga" diff --git a/code/nel/src/3d/scene_group.cpp b/code/nel/src/3d/scene_group.cpp index c5f6f24dc..c060c4c5d 100644 --- a/code/nel/src/3d/scene_group.cpp +++ b/code/nel/src/3d/scene_group.cpp @@ -36,6 +36,10 @@ using namespace NLMISC; using namespace std; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/scene_user.cpp b/code/nel/src/3d/scene_user.cpp index 0df2439de..c581c5c68 100644 --- a/code/nel/src/3d/scene_user.cpp +++ b/code/nel/src/3d/scene_user.cpp @@ -34,6 +34,10 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/seg_remanence.cpp b/code/nel/src/3d/seg_remanence.cpp index e0f9a52ae..be0b0d0cf 100644 --- a/code/nel/src/3d/seg_remanence.cpp +++ b/code/nel/src/3d/seg_remanence.cpp @@ -29,7 +29,9 @@ - +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/seg_remanence_shape.cpp b/code/nel/src/3d/seg_remanence_shape.cpp index cb70f8baa..f31b2c0b2 100644 --- a/code/nel/src/3d/seg_remanence_shape.cpp +++ b/code/nel/src/3d/seg_remanence_shape.cpp @@ -24,6 +24,9 @@ #include "nel/misc/bsphere.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/shadow_map.cpp b/code/nel/src/3d/shadow_map.cpp index 15f9b28e4..a9cad0496 100644 --- a/code/nel/src/3d/shadow_map.cpp +++ b/code/nel/src/3d/shadow_map.cpp @@ -26,6 +26,10 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/shadow_map_manager.cpp b/code/nel/src/3d/shadow_map_manager.cpp index e3f8fde99..c592b5a07 100644 --- a/code/nel/src/3d/shadow_map_manager.cpp +++ b/code/nel/src/3d/shadow_map_manager.cpp @@ -31,6 +31,10 @@ using namespace NLMISC; using namespace std; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/shadow_poly_receiver.cpp b/code/nel/src/3d/shadow_poly_receiver.cpp index 3c832209e..7091310f7 100644 --- a/code/nel/src/3d/shadow_poly_receiver.cpp +++ b/code/nel/src/3d/shadow_poly_receiver.cpp @@ -27,6 +27,10 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/shadow_skin.cpp b/code/nel/src/3d/shadow_skin.cpp index 717d81f74..204e39d91 100644 --- a/code/nel/src/3d/shadow_skin.cpp +++ b/code/nel/src/3d/shadow_skin.cpp @@ -25,6 +25,10 @@ using namespace NLMISC; using namespace std; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/shape.cpp b/code/nel/src/3d/shape.cpp index cf61185cd..6b0db63b8 100644 --- a/code/nel/src/3d/shape.cpp +++ b/code/nel/src/3d/shape.cpp @@ -25,6 +25,9 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/shape_bank.cpp b/code/nel/src/3d/shape_bank.cpp index 08eb867b5..1b34039eb 100644 --- a/code/nel/src/3d/shape_bank.cpp +++ b/code/nel/src/3d/shape_bank.cpp @@ -27,6 +27,10 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/shape_bank_user.cpp b/code/nel/src/3d/shape_bank_user.cpp index eb059d51b..5ded42d0d 100644 --- a/code/nel/src/3d/shape_bank_user.cpp +++ b/code/nel/src/3d/shape_bank_user.cpp @@ -25,6 +25,10 @@ using namespace NLMISC; using namespace std; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/shape_info.cpp b/code/nel/src/3d/shape_info.cpp index 8a4d9cf80..d3a8a4df3 100644 --- a/code/nel/src/3d/shape_info.cpp +++ b/code/nel/src/3d/shape_info.cpp @@ -28,6 +28,9 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/shifted_triangle_cache.cpp b/code/nel/src/3d/shifted_triangle_cache.cpp index c98c5b103..85cf1313a 100644 --- a/code/nel/src/3d/shifted_triangle_cache.cpp +++ b/code/nel/src/3d/shifted_triangle_cache.cpp @@ -17,6 +17,9 @@ #include "std3d.h" #include "nel/3d/shifted_triangle_cache.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/skeleton_model.cpp b/code/nel/src/3d/skeleton_model.cpp index 8fbab5568..94b6fb896 100644 --- a/code/nel/src/3d/skeleton_model.cpp +++ b/code/nel/src/3d/skeleton_model.cpp @@ -36,6 +36,10 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/skeleton_shape.cpp b/code/nel/src/3d/skeleton_shape.cpp index 386b9ad1f..230915407 100644 --- a/code/nel/src/3d/skeleton_shape.cpp +++ b/code/nel/src/3d/skeleton_shape.cpp @@ -24,6 +24,10 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/skeleton_spawn_script.cpp b/code/nel/src/3d/skeleton_spawn_script.cpp index b77d044fc..d950b43a3 100644 --- a/code/nel/src/3d/skeleton_spawn_script.cpp +++ b/code/nel/src/3d/skeleton_spawn_script.cpp @@ -27,6 +27,10 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/skeleton_weight.cpp b/code/nel/src/3d/skeleton_weight.cpp index ba037236a..2f9c412c1 100644 --- a/code/nel/src/3d/skeleton_weight.cpp +++ b/code/nel/src/3d/skeleton_weight.cpp @@ -19,6 +19,9 @@ #include "nel/3d/skeleton_weight.h" #include "nel/misc/stream.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/stereo_debugger.cpp b/code/nel/src/3d/stereo_debugger.cpp index 138f8e3ae..c0c36eb74 100644 --- a/code/nel/src/3d/stereo_debugger.cpp +++ b/code/nel/src/3d/stereo_debugger.cpp @@ -47,6 +47,10 @@ using namespace std; // using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { namespace { diff --git a/code/nel/src/3d/stereo_display.cpp b/code/nel/src/3d/stereo_display.cpp index dede3fbf6..6ff13b54c 100644 --- a/code/nel/src/3d/stereo_display.cpp +++ b/code/nel/src/3d/stereo_display.cpp @@ -42,6 +42,10 @@ using namespace std; // using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { IStereoDisplay::IStereoDisplay() diff --git a/code/nel/src/3d/stereo_hmd.cpp b/code/nel/src/3d/stereo_hmd.cpp index 207965636..d5f29d107 100644 --- a/code/nel/src/3d/stereo_hmd.cpp +++ b/code/nel/src/3d/stereo_hmd.cpp @@ -38,6 +38,10 @@ using namespace std; // using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { IStereoHMD::IStereoHMD() diff --git a/code/nel/src/3d/stereo_libvr.cpp b/code/nel/src/3d/stereo_libvr.cpp index 2f31beac4..d8c843dbf 100644 --- a/code/nel/src/3d/stereo_libvr.cpp +++ b/code/nel/src/3d/stereo_libvr.cpp @@ -54,6 +54,10 @@ extern "C" { using namespace std; // using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { extern const char *g_StereoOVR_fp40; //TODO: what? diff --git a/code/nel/src/3d/stereo_ovr.cpp b/code/nel/src/3d/stereo_ovr.cpp index 103b44696..69a2b0db0 100644 --- a/code/nel/src/3d/stereo_ovr.cpp +++ b/code/nel/src/3d/stereo_ovr.cpp @@ -68,6 +68,10 @@ using namespace std; // using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { extern const char *g_StereoOVR_fp40; diff --git a/code/nel/src/3d/stereo_ovr_04.cpp b/code/nel/src/3d/stereo_ovr_04.cpp index fcccc2f6b..2f382a176 100644 --- a/code/nel/src/3d/stereo_ovr_04.cpp +++ b/code/nel/src/3d/stereo_ovr_04.cpp @@ -68,6 +68,10 @@ using namespace std; // using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { namespace { diff --git a/code/nel/src/3d/stereo_ovr_fp.cpp b/code/nel/src/3d/stereo_ovr_fp.cpp index 84a74598e..c9ca3c1cc 100644 --- a/code/nel/src/3d/stereo_ovr_fp.cpp +++ b/code/nel/src/3d/stereo_ovr_fp.cpp @@ -23,6 +23,10 @@ limitations under the License. #include "std3d.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { const char *g_StereoOVR_fp40 = "!!ARBfp1.0\n" diff --git a/code/nel/src/3d/stripifier.cpp b/code/nel/src/3d/stripifier.cpp index 96ac4e211..6453cbd1b 100644 --- a/code/nel/src/3d/stripifier.cpp +++ b/code/nel/src/3d/stripifier.cpp @@ -25,6 +25,10 @@ using namespace std; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/surface_light_grid.cpp b/code/nel/src/3d/surface_light_grid.cpp index 9a4731c00..deec090a4 100644 --- a/code/nel/src/3d/surface_light_grid.cpp +++ b/code/nel/src/3d/surface_light_grid.cpp @@ -27,6 +27,10 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/tangent_space_build.cpp b/code/nel/src/3d/tangent_space_build.cpp index 8a1b1100a..f99a7537b 100644 --- a/code/nel/src/3d/tangent_space_build.cpp +++ b/code/nel/src/3d/tangent_space_build.cpp @@ -23,6 +23,9 @@ #include "nel/misc/triangle.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/tess_block.cpp b/code/nel/src/3d/tess_block.cpp index 3b3c7ec92..917e06a23 100644 --- a/code/nel/src/3d/tess_block.cpp +++ b/code/nel/src/3d/tess_block.cpp @@ -20,6 +20,9 @@ #include "nel/3d/patch_rdr_pass.h" #include "nel/3d/landscape_face_vector_manager.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/tess_face_priority_list.cpp b/code/nel/src/3d/tess_face_priority_list.cpp index 8746a4791..a49c9af75 100644 --- a/code/nel/src/3d/tess_face_priority_list.cpp +++ b/code/nel/src/3d/tess_face_priority_list.cpp @@ -26,6 +26,10 @@ using namespace NLMISC; using namespace std; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/tessellation.cpp b/code/nel/src/3d/tessellation.cpp index b683725a3..451e1013b 100644 --- a/code/nel/src/3d/tessellation.cpp +++ b/code/nel/src/3d/tessellation.cpp @@ -23,9 +23,13 @@ #include "nel/3d/landscape_profile.h" #include "nel/3d/landscape.h" #include "nel/3d/patchdlm_context.h" + using namespace NLMISC; using namespace std; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/text_context.cpp b/code/nel/src/3d/text_context.cpp index 1cca5145a..a28c3e7a1 100644 --- a/code/nel/src/3d/text_context.cpp +++ b/code/nel/src/3d/text_context.cpp @@ -19,6 +19,10 @@ #include "nel/3d/text_context.h" #include "nel/3d/font_generator.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { // ------------------------------------------------------------------------------------------------ diff --git a/code/nel/src/3d/text_context_user.cpp b/code/nel/src/3d/text_context_user.cpp index 441d463f5..1834a93ce 100644 --- a/code/nel/src/3d/text_context_user.cpp +++ b/code/nel/src/3d/text_context_user.cpp @@ -19,6 +19,9 @@ #include "nel/3d/text_context_user.h" #include "nel/misc/hierarchical_timer.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/texture.cpp b/code/nel/src/3d/texture.cpp index bd01f7650..3e248e521 100644 --- a/code/nel/src/3d/texture.cpp +++ b/code/nel/src/3d/texture.cpp @@ -20,6 +20,9 @@ #include "nel/3d/driver.h" #include +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/texture_blank.cpp b/code/nel/src/3d/texture_blank.cpp index f9b2b1210..febf30079 100644 --- a/code/nel/src/3d/texture_blank.cpp +++ b/code/nel/src/3d/texture_blank.cpp @@ -18,6 +18,9 @@ #include "nel/3d/texture_blank.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/texture_blend.cpp b/code/nel/src/3d/texture_blend.cpp index 765766119..0d85664d6 100644 --- a/code/nel/src/3d/texture_blend.cpp +++ b/code/nel/src/3d/texture_blend.cpp @@ -19,6 +19,10 @@ #include "nel/3d/texture_blend.h" #include "nel/misc/common.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/texture_bump.cpp b/code/nel/src/3d/texture_bump.cpp index 887167de6..adc425c37 100644 --- a/code/nel/src/3d/texture_bump.cpp +++ b/code/nel/src/3d/texture_bump.cpp @@ -20,6 +20,9 @@ +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/texture_cube.cpp b/code/nel/src/3d/texture_cube.cpp index 809bff5fa..f754aa2a0 100644 --- a/code/nel/src/3d/texture_cube.cpp +++ b/code/nel/src/3d/texture_cube.cpp @@ -25,6 +25,9 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/texture_dlm.cpp b/code/nel/src/3d/texture_dlm.cpp index 3e7695936..ab7168827 100644 --- a/code/nel/src/3d/texture_dlm.cpp +++ b/code/nel/src/3d/texture_dlm.cpp @@ -24,6 +24,9 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/texture_emboss.cpp b/code/nel/src/3d/texture_emboss.cpp index 55d5d85a9..1c9733bda 100644 --- a/code/nel/src/3d/texture_emboss.cpp +++ b/code/nel/src/3d/texture_emboss.cpp @@ -19,6 +19,10 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { // *********************************************************************************************************** diff --git a/code/nel/src/3d/texture_far.cpp b/code/nel/src/3d/texture_far.cpp index d51d8fe43..594a79131 100644 --- a/code/nel/src/3d/texture_far.cpp +++ b/code/nel/src/3d/texture_far.cpp @@ -29,6 +29,10 @@ using namespace NLMISC; using namespace NL3D; using namespace std; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { CRGBA CTextureFar::_LightmapExpanded[NL_NUM_PIXELS_ON_FAR_TILE_EDGE*NL_MAX_TILES_BY_PATCH_EDGE*NL_NUM_PIXELS_ON_FAR_TILE_EDGE*NL_MAX_TILES_BY_PATCH_EDGE]; diff --git a/code/nel/src/3d/texture_file.cpp b/code/nel/src/3d/texture_file.cpp index bed3b36d7..a30b21bb1 100644 --- a/code/nel/src/3d/texture_file.cpp +++ b/code/nel/src/3d/texture_file.cpp @@ -21,9 +21,13 @@ #include "nel/misc/path.h" #include "nel/misc/debug.h" #include "nel/misc/hierarchical_timer.h" + using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/texture_font.cpp b/code/nel/src/3d/texture_font.cpp index 4e9e3a0a4..cf46d025d 100644 --- a/code/nel/src/3d/texture_font.cpp +++ b/code/nel/src/3d/texture_font.cpp @@ -28,6 +28,10 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/texture_grouped.cpp b/code/nel/src/3d/texture_grouped.cpp index 1df0c7c7d..b6d42f3b1 100644 --- a/code/nel/src/3d/texture_grouped.cpp +++ b/code/nel/src/3d/texture_grouped.cpp @@ -23,6 +23,10 @@ #include +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { std::map CTextureGrouped::_NameToSize; diff --git a/code/nel/src/3d/texture_mem.cpp b/code/nel/src/3d/texture_mem.cpp index 9a51bd9ab..e2881e88e 100644 --- a/code/nel/src/3d/texture_mem.cpp +++ b/code/nel/src/3d/texture_mem.cpp @@ -21,6 +21,9 @@ #include +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/texture_multi_file.cpp b/code/nel/src/3d/texture_multi_file.cpp index 5968df550..b2316cc73 100644 --- a/code/nel/src/3d/texture_multi_file.cpp +++ b/code/nel/src/3d/texture_multi_file.cpp @@ -19,6 +19,9 @@ #include "nel/3d/texture_multi_file.h" #include "nel/3d/texture_file.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/texture_near.cpp b/code/nel/src/3d/texture_near.cpp index 6c430f74e..e39279dd1 100644 --- a/code/nel/src/3d/texture_near.cpp +++ b/code/nel/src/3d/texture_near.cpp @@ -15,11 +15,14 @@ // along with this program. If not, see . #include "std3d.h" - - #include "nel/3d/texture_near.h" + using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/tile_bank.cpp b/code/nel/src/3d/tile_bank.cpp index 23075448e..e222f061f 100644 --- a/code/nel/src/3d/tile_bank.cpp +++ b/code/nel/src/3d/tile_bank.cpp @@ -29,6 +29,10 @@ using namespace NLMISC; using namespace std; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/tile_element.cpp b/code/nel/src/3d/tile_element.cpp index 52216749e..6f89abf61 100644 --- a/code/nel/src/3d/tile_element.cpp +++ b/code/nel/src/3d/tile_element.cpp @@ -19,6 +19,9 @@ #include "nel/3d/tile_element.h" #include "nel/misc/debug.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/tile_far_bank.cpp b/code/nel/src/3d/tile_far_bank.cpp index e62903904..d8eceb21e 100644 --- a/code/nel/src/3d/tile_far_bank.cpp +++ b/code/nel/src/3d/tile_far_bank.cpp @@ -23,6 +23,10 @@ using namespace NLMISC; // Define this to force white far texture (debug) // #define NEL_FORCE_WHITE_FAR_TEXTURE +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/tile_light_influence.cpp b/code/nel/src/3d/tile_light_influence.cpp index 55a44af66..53bc2e096 100644 --- a/code/nel/src/3d/tile_light_influence.cpp +++ b/code/nel/src/3d/tile_light_influence.cpp @@ -19,6 +19,9 @@ #include "nel/3d/tile_light_influence.h" #include "nel/misc/debug.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/tile_lumel.cpp b/code/nel/src/3d/tile_lumel.cpp index 41f770b6e..7eaa80199 100644 --- a/code/nel/src/3d/tile_lumel.cpp +++ b/code/nel/src/3d/tile_lumel.cpp @@ -20,6 +20,10 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/tile_noise_map.cpp b/code/nel/src/3d/tile_noise_map.cpp index 7d68d6a71..7b0d22dda 100644 --- a/code/nel/src/3d/tile_noise_map.cpp +++ b/code/nel/src/3d/tile_noise_map.cpp @@ -18,6 +18,9 @@ #include "nel/3d/tile_noise_map.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/tile_vegetable_desc.cpp b/code/nel/src/3d/tile_vegetable_desc.cpp index bad4ed517..849f19503 100644 --- a/code/nel/src/3d/tile_vegetable_desc.cpp +++ b/code/nel/src/3d/tile_vegetable_desc.cpp @@ -24,6 +24,9 @@ using namespace NLMISC; using namespace std; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/track.cpp b/code/nel/src/3d/track.cpp index bf4dcddf5..a73186525 100644 --- a/code/nel/src/3d/track.cpp +++ b/code/nel/src/3d/track.cpp @@ -23,6 +23,10 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/track_keyframer.cpp b/code/nel/src/3d/track_keyframer.cpp index a3af79f1a..d3b5f6fb4 100644 --- a/code/nel/src/3d/track_keyframer.cpp +++ b/code/nel/src/3d/track_keyframer.cpp @@ -18,6 +18,9 @@ #include "nel/3d/track_keyframer.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/track_sampled_common.cpp b/code/nel/src/3d/track_sampled_common.cpp index 372cf4f45..2fb7fc132 100644 --- a/code/nel/src/3d/track_sampled_common.cpp +++ b/code/nel/src/3d/track_sampled_common.cpp @@ -25,6 +25,9 @@ using namespace NLMISC; using namespace std; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/track_sampled_quat_small_header.cpp b/code/nel/src/3d/track_sampled_quat_small_header.cpp index c9826d423..cb0a28f3b 100644 --- a/code/nel/src/3d/track_sampled_quat_small_header.cpp +++ b/code/nel/src/3d/track_sampled_quat_small_header.cpp @@ -23,6 +23,9 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/track_sampled_vector.cpp b/code/nel/src/3d/track_sampled_vector.cpp index 2e52764d2..3e19cac64 100644 --- a/code/nel/src/3d/track_sampled_vector.cpp +++ b/code/nel/src/3d/track_sampled_vector.cpp @@ -22,6 +22,9 @@ using namespace NLMISC; using namespace std; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/transform.cpp b/code/nel/src/3d/transform.cpp index 0ec65360d..559a3c355 100644 --- a/code/nel/src/3d/transform.cpp +++ b/code/nel/src/3d/transform.cpp @@ -29,6 +29,10 @@ using namespace NLMISC; using namespace std; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/transform_shape.cpp b/code/nel/src/3d/transform_shape.cpp index 5c9f730b7..014e997ab 100644 --- a/code/nel/src/3d/transform_shape.cpp +++ b/code/nel/src/3d/transform_shape.cpp @@ -31,6 +31,9 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/transformable.cpp b/code/nel/src/3d/transformable.cpp index 0061975bf..30ef19e36 100644 --- a/code/nel/src/3d/transformable.cpp +++ b/code/nel/src/3d/transformable.cpp @@ -19,6 +19,9 @@ #include "nel/3d/transformable.h" #include "nel/3d/channel_mixer.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/u_bone.cpp b/code/nel/src/3d/u_bone.cpp index 680411af7..1f0369929 100644 --- a/code/nel/src/3d/u_bone.cpp +++ b/code/nel/src/3d/u_bone.cpp @@ -19,6 +19,9 @@ #include "nel/3d/bone.h" #include "nel/3d/u_bone.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/u_camera.cpp b/code/nel/src/3d/u_camera.cpp index ec1a88eda..0a052205f 100644 --- a/code/nel/src/3d/u_camera.cpp +++ b/code/nel/src/3d/u_camera.cpp @@ -19,6 +19,9 @@ #include "nel/3d/u_camera.h" #include "nel/3d/camera.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/u_instance.cpp b/code/nel/src/3d/u_instance.cpp index 08ecb9933..cb2a273ed 100644 --- a/code/nel/src/3d/u_instance.cpp +++ b/code/nel/src/3d/u_instance.cpp @@ -29,6 +29,10 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/u_instance_material.cpp b/code/nel/src/3d/u_instance_material.cpp index b22cd5301..ba870a7fe 100644 --- a/code/nel/src/3d/u_instance_material.cpp +++ b/code/nel/src/3d/u_instance_material.cpp @@ -23,6 +23,9 @@ #include "nel/3d/texture_mem.h" #include "nel/3d/texture_file.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/u_material.cpp b/code/nel/src/3d/u_material.cpp index e881bbada..b6b9dccc4 100644 --- a/code/nel/src/3d/u_material.cpp +++ b/code/nel/src/3d/u_material.cpp @@ -22,6 +22,9 @@ #include "nel/3d/texture_user.h" #include "nel/3d/driver_user.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/u_particle_system_instance.cpp b/code/nel/src/3d/u_particle_system_instance.cpp index 77dee0ded..ea5794b19 100644 --- a/code/nel/src/3d/u_particle_system_instance.cpp +++ b/code/nel/src/3d/u_particle_system_instance.cpp @@ -22,6 +22,9 @@ #include "nel/3d/ps_emitter.h" #include "nel/3d/particle_system_model.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/u_point_light.cpp b/code/nel/src/3d/u_point_light.cpp index 8643a1ae0..5f4d8da97 100644 --- a/code/nel/src/3d/u_point_light.cpp +++ b/code/nel/src/3d/u_point_light.cpp @@ -23,6 +23,10 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/u_shape.cpp b/code/nel/src/3d/u_shape.cpp index 9f746dad0..eb179375e 100644 --- a/code/nel/src/3d/u_shape.cpp +++ b/code/nel/src/3d/u_shape.cpp @@ -25,6 +25,9 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/u_skeleton.cpp b/code/nel/src/3d/u_skeleton.cpp index b470f879c..e5dd29f4d 100644 --- a/code/nel/src/3d/u_skeleton.cpp +++ b/code/nel/src/3d/u_skeleton.cpp @@ -27,6 +27,9 @@ #include "nel/3d/scene.h" #include "nel/3d/shape_bank.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/u_transform.cpp b/code/nel/src/3d/u_transform.cpp index 8466c1e38..141986782 100644 --- a/code/nel/src/3d/u_transform.cpp +++ b/code/nel/src/3d/u_transform.cpp @@ -30,6 +30,10 @@ H_AUTO_DECL( NL3D_Transform_Set_Cluster_System ) using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/u_transformable.cpp b/code/nel/src/3d/u_transformable.cpp index 26f84c746..4561cce32 100644 --- a/code/nel/src/3d/u_transformable.cpp +++ b/code/nel/src/3d/u_transformable.cpp @@ -19,6 +19,9 @@ #include "nel/3d/u_transformable.h" #include "nel/3d/transformable.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/u_visual_collision_mesh.cpp b/code/nel/src/3d/u_visual_collision_mesh.cpp index 92f8d4af6..e51c89105 100644 --- a/code/nel/src/3d/u_visual_collision_mesh.cpp +++ b/code/nel/src/3d/u_visual_collision_mesh.cpp @@ -19,6 +19,9 @@ #include "nel/3d/u_visual_collision_mesh.h" #include "nel/3d/visual_collision_mesh.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/u_water.cpp b/code/nel/src/3d/u_water.cpp index 138a1f340..69326c87c 100644 --- a/code/nel/src/3d/u_water.cpp +++ b/code/nel/src/3d/u_water.cpp @@ -22,6 +22,9 @@ #include "nel/3d/water_model.h" #include "nel/3d/driver_user.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/vegetable.cpp b/code/nel/src/3d/vegetable.cpp index b1c708900..b6acf831f 100644 --- a/code/nel/src/3d/vegetable.cpp +++ b/code/nel/src/3d/vegetable.cpp @@ -25,6 +25,9 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/vegetable_blend_layer_model.cpp b/code/nel/src/3d/vegetable_blend_layer_model.cpp index 44754add2..9c3b9dd54 100644 --- a/code/nel/src/3d/vegetable_blend_layer_model.cpp +++ b/code/nel/src/3d/vegetable_blend_layer_model.cpp @@ -28,6 +28,10 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/vegetable_clip_block.cpp b/code/nel/src/3d/vegetable_clip_block.cpp index cf0d60e59..87d7b7535 100644 --- a/code/nel/src/3d/vegetable_clip_block.cpp +++ b/code/nel/src/3d/vegetable_clip_block.cpp @@ -18,6 +18,9 @@ #include "nel/3d/vegetable_clip_block.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/vegetable_instance_group.cpp b/code/nel/src/3d/vegetable_instance_group.cpp index debd78763..2e48f740a 100644 --- a/code/nel/src/3d/vegetable_instance_group.cpp +++ b/code/nel/src/3d/vegetable_instance_group.cpp @@ -18,6 +18,9 @@ #include "nel/3d/vegetable_instance_group.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/vegetable_light_ex.cpp b/code/nel/src/3d/vegetable_light_ex.cpp index e663bddda..dc2109e96 100644 --- a/code/nel/src/3d/vegetable_light_ex.cpp +++ b/code/nel/src/3d/vegetable_light_ex.cpp @@ -19,6 +19,9 @@ #include "nel/3d/vegetable_light_ex.h" #include "nel/3d/point_light_named.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/vegetable_quadrant.cpp b/code/nel/src/3d/vegetable_quadrant.cpp index 1246a1a0c..ac83e0a99 100644 --- a/code/nel/src/3d/vegetable_quadrant.cpp +++ b/code/nel/src/3d/vegetable_quadrant.cpp @@ -22,6 +22,10 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/vegetable_shape.cpp b/code/nel/src/3d/vegetable_shape.cpp index 7d9991b65..3e4c2b7f0 100644 --- a/code/nel/src/3d/vegetable_shape.cpp +++ b/code/nel/src/3d/vegetable_shape.cpp @@ -24,6 +24,9 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/vegetable_sort_block.cpp b/code/nel/src/3d/vegetable_sort_block.cpp index cbd82aa2b..1ba562cda 100644 --- a/code/nel/src/3d/vegetable_sort_block.cpp +++ b/code/nel/src/3d/vegetable_sort_block.cpp @@ -25,6 +25,10 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/vegetablevb_allocator.cpp b/code/nel/src/3d/vegetablevb_allocator.cpp index fa5aea364..ff5dc293f 100644 --- a/code/nel/src/3d/vegetablevb_allocator.cpp +++ b/code/nel/src/3d/vegetablevb_allocator.cpp @@ -25,6 +25,10 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/vertex_buffer.cpp b/code/nel/src/3d/vertex_buffer.cpp index 8315b46da..bdc9d495f 100644 --- a/code/nel/src/3d/vertex_buffer.cpp +++ b/code/nel/src/3d/vertex_buffer.cpp @@ -20,8 +20,12 @@ #include "nel/misc/vector.h" #include "nel/misc/fast_mem.h" #include "nel/3d/driver.h" + using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/vertex_program.cpp b/code/nel/src/3d/vertex_program.cpp index d0c0cfb79..dc717b825 100644 --- a/code/nel/src/3d/vertex_program.cpp +++ b/code/nel/src/3d/vertex_program.cpp @@ -20,6 +20,9 @@ #include "nel/3d/driver.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/vertex_program_parse.cpp b/code/nel/src/3d/vertex_program_parse.cpp index 259e72b41..f4598659b 100644 --- a/code/nel/src/3d/vertex_program_parse.cpp +++ b/code/nel/src/3d/vertex_program_parse.cpp @@ -17,6 +17,10 @@ #include "std3d.h" #include "nel/3d/vertex_program_parse.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + enum TArguments { #ifdef NL_LITTLE_ENDIAN diff --git a/code/nel/src/3d/vertex_stream_manager.cpp b/code/nel/src/3d/vertex_stream_manager.cpp index 0acb54144..74d2727dd 100644 --- a/code/nel/src/3d/vertex_stream_manager.cpp +++ b/code/nel/src/3d/vertex_stream_manager.cpp @@ -22,6 +22,10 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/viewport.cpp b/code/nel/src/3d/viewport.cpp index b84d1d713..6eccdeaca 100644 --- a/code/nel/src/3d/viewport.cpp +++ b/code/nel/src/3d/viewport.cpp @@ -21,6 +21,9 @@ using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/visual_collision_entity.cpp b/code/nel/src/3d/visual_collision_entity.cpp index dcae15aef..8f3b97e68 100644 --- a/code/nel/src/3d/visual_collision_entity.cpp +++ b/code/nel/src/3d/visual_collision_entity.cpp @@ -29,6 +29,9 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/visual_collision_entity_user.cpp b/code/nel/src/3d/visual_collision_entity_user.cpp index 89b44f22f..d13ca57c2 100644 --- a/code/nel/src/3d/visual_collision_entity_user.cpp +++ b/code/nel/src/3d/visual_collision_entity_user.cpp @@ -20,6 +20,9 @@ #include "nel/3d/driver_user.h" #include "nel/misc/hierarchical_timer.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/visual_collision_manager.cpp b/code/nel/src/3d/visual_collision_manager.cpp index c5c45578f..6d914464f 100644 --- a/code/nel/src/3d/visual_collision_manager.cpp +++ b/code/nel/src/3d/visual_collision_manager.cpp @@ -28,6 +28,9 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/visual_collision_manager_user.cpp b/code/nel/src/3d/visual_collision_manager_user.cpp index 800080706..b1ae7923d 100644 --- a/code/nel/src/3d/visual_collision_manager_user.cpp +++ b/code/nel/src/3d/visual_collision_manager_user.cpp @@ -19,6 +19,9 @@ #include "nel/3d/visual_collision_manager_user.h" #include "nel/3d/u_visual_collision_mesh.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/visual_collision_mesh.cpp b/code/nel/src/3d/visual_collision_mesh.cpp index 3217a560f..8de722a2b 100644 --- a/code/nel/src/3d/visual_collision_mesh.cpp +++ b/code/nel/src/3d/visual_collision_mesh.cpp @@ -26,6 +26,9 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif // TestYoyo. external debug flag bool TESTYOYO_VCM_RedShadow= false; diff --git a/code/nel/src/3d/water_env_map_user.cpp b/code/nel/src/3d/water_env_map_user.cpp index d1f9e9961..446ade3b8 100644 --- a/code/nel/src/3d/water_env_map_user.cpp +++ b/code/nel/src/3d/water_env_map_user.cpp @@ -19,6 +19,10 @@ #include "nel/3d/u_scene.h" #include "nel/3d/u_camera.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { ////////////////////// diff --git a/code/nel/src/3d/water_height_map.cpp b/code/nel/src/3d/water_height_map.cpp index 38ca1cacf..d608dfc43 100644 --- a/code/nel/src/3d/water_height_map.cpp +++ b/code/nel/src/3d/water_height_map.cpp @@ -24,6 +24,9 @@ #include +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/water_model.cpp b/code/nel/src/3d/water_model.cpp index e6ae132e1..d65ad582d 100644 --- a/code/nel/src/3d/water_model.cpp +++ b/code/nel/src/3d/water_model.cpp @@ -36,6 +36,9 @@ using NLMISC::CVector2f; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/water_shape.cpp b/code/nel/src/3d/water_shape.cpp index f5e26b8d7..df5e6dadf 100644 --- a/code/nel/src/3d/water_shape.cpp +++ b/code/nel/src/3d/water_shape.cpp @@ -26,6 +26,9 @@ #include "nel/3d/water_height_map.h" #include +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/zone.cpp b/code/nel/src/3d/zone.cpp index 263c61539..029f6da81 100644 --- a/code/nel/src/3d/zone.cpp +++ b/code/nel/src/3d/zone.cpp @@ -30,6 +30,9 @@ using namespace std; // define it only for debug bind. //#define NL3D_DEBUG_DONT_BIND_PATCH +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/zone_corner_smoother.cpp b/code/nel/src/3d/zone_corner_smoother.cpp index 430c6929f..568d4c6a3 100644 --- a/code/nel/src/3d/zone_corner_smoother.cpp +++ b/code/nel/src/3d/zone_corner_smoother.cpp @@ -19,6 +19,9 @@ #include "nel/3d/zone_corner_smoother.h" #include "nel/3d/patchuv_locator.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/zone_lighter.cpp b/code/nel/src/3d/zone_lighter.cpp index c70ad0ba2..78abf5a05 100644 --- a/code/nel/src/3d/zone_lighter.cpp +++ b/code/nel/src/3d/zone_lighter.cpp @@ -51,6 +51,10 @@ using namespace std; // Define this to render the zbuffers into a bitmap zbuffer and save it into a jpeg // #define SAVE_ZBUFFER "c:/temp" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + #define DEFAULT_JITTER 0.4f #define DEFAULT_ZBUFFER_LANDSCAPE_SIZE 32768 #define DEFAULT_ZBUFFER_OBJECT_SIZE (32768*3) diff --git a/code/nel/src/3d/zone_manager.cpp b/code/nel/src/3d/zone_manager.cpp index 34a670b5e..1f9e61214 100644 --- a/code/nel/src/3d/zone_manager.cpp +++ b/code/nel/src/3d/zone_manager.cpp @@ -23,6 +23,9 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/zone_search.cpp b/code/nel/src/3d/zone_search.cpp index f850d4377..85e5a643a 100644 --- a/code/nel/src/3d/zone_search.cpp +++ b/code/nel/src/3d/zone_search.cpp @@ -23,6 +23,9 @@ using namespace std; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/zone_smoother.cpp b/code/nel/src/3d/zone_smoother.cpp index 2ae360933..6fd108ac7 100644 --- a/code/nel/src/3d/zone_smoother.cpp +++ b/code/nel/src/3d/zone_smoother.cpp @@ -18,6 +18,9 @@ #include "nel/3d/zone_smoother.h" +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif namespace NL3D { diff --git a/code/nel/src/3d/zone_symmetrisation.cpp b/code/nel/src/3d/zone_symmetrisation.cpp index a12daa972..51b00b3f3 100644 --- a/code/nel/src/3d/zone_symmetrisation.cpp +++ b/code/nel/src/3d/zone_symmetrisation.cpp @@ -22,6 +22,10 @@ using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D { diff --git a/code/nel/src/3d/zone_tgt_smoother.cpp b/code/nel/src/3d/zone_tgt_smoother.cpp index 865d72609..1a4902203 100644 --- a/code/nel/src/3d/zone_tgt_smoother.cpp +++ b/code/nel/src/3d/zone_tgt_smoother.cpp @@ -18,9 +18,14 @@ #include "nel/3d/zone_tgt_smoother.h" #include "nel/misc/plane.h" + using namespace std; using namespace NLMISC; +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + namespace NL3D {