Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3fd8d2af authored by Chia-I Wu's avatar Chia-I Wu Committed by android-build-merger
Browse files

vulkan: check flags for early debug report callbacks am: ede02ac2

am: 2dff6590

* commit '2dff6590':
  vulkan: check flags for early debug report callbacks

Change-Id: I5ade76110d40b16854e50f3e04075ca448cbd752
parents d1b563e7 2dff6590
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -80,7 +80,8 @@ void DebugReportLogger::Message(VkDebugReportFlagsEXT flags,
        reinterpret_cast<const VkDebugReportCallbackCreateInfoEXT*>(
        reinterpret_cast<const VkDebugReportCallbackCreateInfoEXT*>(
            instance_pnext_);
            instance_pnext_);
    while (info) {
    while (info) {
        if (info->sType == VK_STRUCTURE_TYPE_DEBUG_REPORT_CREATE_INFO_EXT) {
        if (info->sType == VK_STRUCTURE_TYPE_DEBUG_REPORT_CREATE_INFO_EXT &&
            (info->flags & flags) != 0) {
            info->pfnCallback(flags, object_type, object, location,
            info->pfnCallback(flags, object_type, object, location,
                              message_code, layer_prefix, message,
                              message_code, layer_prefix, message,
                              info->pUserData);
                              info->pUserData);