From 092e33791ce4931ef03c2d22346b96d48819b810 Mon Sep 17 00:00:00 2001 From: Mike Stroyan Date: Fri, 11 Sep 2015 13:29:21 -0600 Subject: [PATCH] layers: make DrawState globals static Prevent symbol name collisions, especially with other layers. --- layers/draw_state.cpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp index 10b56d88..abc7c418 100644 --- a/layers/draw_state.cpp +++ b/layers/draw_state.cpp @@ -60,24 +60,24 @@ static std::unordered_map layer_data_map; static device_table_map draw_state_device_table_map; static instance_table_map draw_state_instance_table_map; -unordered_map sampleMap; -unordered_map imageMap; -unordered_map viewMap; -unordered_map bufferMap; -unordered_map dynamicVpStateMap; -unordered_map dynamicLineWidthStateMap; -unordered_map dynamicDepthBiasStateMap; -unordered_map dynamicBlendStateMap; -unordered_map dynamicDepthBoundsStateMap; -unordered_map> dynamicStencilStateMap; -unordered_map pipelineMap; -unordered_map poolMap; -unordered_map setMap; -unordered_map layoutMap; +static unordered_map sampleMap; +static unordered_map imageMap; +static unordered_map viewMap; +static unordered_map bufferMap; +static unordered_map dynamicVpStateMap; +static unordered_map dynamicLineWidthStateMap; +static unordered_map dynamicDepthBiasStateMap; +static unordered_map dynamicBlendStateMap; +static unordered_map dynamicDepthBoundsStateMap; +static unordered_map> dynamicStencilStateMap; +static unordered_map pipelineMap; +static unordered_map poolMap; +static unordered_map setMap; +static unordered_map layoutMap; // Map for layout chains -unordered_map cmdBufferMap; -unordered_map renderPassMap; -unordered_map frameBufferMap; +static unordered_map cmdBufferMap; +static unordered_map renderPassMap; +static unordered_map frameBufferMap; struct devExts { bool debug_marker_enabled; -- 2.34.1