Commit 58ba6bf5 by Geoff Lang Committed by Commit Bot

Enable debug layers by default whenever assertions are enabled.

BUG=angleproject:2279 Change-Id: I7e7ef359fa3021aa10585653b2fec169f5d4a51f Reviewed-on: https://chromium-review.googlesource.com/794536Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarYuly Novikov <ynovikov@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org>
parent d5f1afb5
......@@ -375,11 +375,11 @@ bool ShouldUseDebugLayers(const egl::AttributeMap &attribs)
attribs.get(EGL_PLATFORM_ANGLE_DEBUG_LAYERS_ENABLED_ANGLE, EGL_DONT_CARE);
// Prefer to enable debug layers if compiling in Debug, and disabled in Release.
#if !defined(NDEBUG)
#if defined(ANGLE_ENABLE_ASSERTS)
return (debugSetting != EGL_FALSE);
#else
return (debugSetting == EGL_TRUE);
#endif // !defined(NDEBUG)
#endif // defined(ANGLE_ENABLE_ASSERTS)
}
void CopyImageCHROMIUM(const uint8_t *sourceData,
......
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