-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LoadData was being called twice from InitializeImage #2079
LoadData was being called twice from InitializeImage #2079
Conversation
CI gfxreconstruct build queued with queue ID 397615. |
CI gfxreconstruct build # 6356 running. |
CI gfxreconstruct build # 6356 passed. |
@@ -181,8 +181,6 @@ VkResult VulkanResourceInitializer::InitializeImage(VkDeviceSize dat | |||
|
|||
if (result == VK_SUCCESS) | |||
{ | |||
result = LoadData(data_size, data, staging_buffer_data); | |||
|
|||
if (result == VK_SUCCESS) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can remove the inner if
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right
AcquireInitializedStagingBuffer will call LoadData so InitializeImage does not need to explicitly call it again.
0f86544
to
e6ad108
Compare
CI gfxreconstruct build queued with queue ID 397665. |
CI gfxreconstruct build # 6358 running. |
CI gfxreconstruct build # 6358 passed. |
This is included in #2081 |
AcquireInitializedStagingBuffer will call LoadData so InitializeImage does not need to explicitly call it again.