From: Mike Stroyan Date: Fri, 11 Sep 2015 19:29:21 +0000 (-0600) Subject: layers: make DrawState globals static X-Git-Tag: submit/tizen/20181227.054638~4858 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=092e33791ce4931ef03c2d22346b96d48819b810;p=platform%2Fupstream%2FVulkan-Tools.git layers: make DrawState globals static Prevent symbol name collisions, especially with other layers. --- 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;