Commit df9ad2be by Jamie Madill Committed by Commit Bot

Vulkan: Minor refactor to RendererVk::initialize.

Bug: angleproject:2314 Change-Id: Ic3fa5f8ff5a0933e22b9fd5803b7ab3fbbfd449f Reviewed-on: https://chromium-review.googlesource.com/899686Reviewed-by: 's avatarYuly Novikov <ynovikov@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent c7295f4d
......@@ -250,9 +250,7 @@ RendererVk::~RendererVk()
vk::Error RendererVk::initialize(const egl::AttributeMap &attribs, const char *wsiName)
{
mEnableValidationLayers = ShouldUseDebugLayers(attribs);
ScopedVkLoaderEnvironment scopedEnvironment(mEnableValidationLayers);
ScopedVkLoaderEnvironment scopedEnvironment(ShouldUseDebugLayers(attribs));
mEnableValidationLayers = scopedEnvironment.canEnableValidationLayers();
// Gather global layer properties.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment