Commit 344ecaa6 by Geoff Lang Committed by Commit Bot

D3D: Return Incomplete when failing to load a program binary.

When Stop is returned, the ProgramD3D::GetExecutableTask attempts to pop an error that has not been set. Returning Incomplete matches the other error cases in program binary loading. BUG=962439 Change-Id: I70895ddc706045620e3df219681982357b7b63e5 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1620914Reviewed-by: 's avatarShahbaz Youssefi <syoussefi@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org>
parent 8224a58b
......@@ -531,6 +531,8 @@ class ProgramD3D::GetExecutableTask : public Closure, public d3d::Context
void popError(d3d::Context *context)
{
ASSERT(mStoredFile);
ASSERT(mStoredFunction);
context->handleResult(mStoredHR, mStoredMessage.c_str(), mStoredFile, mStoredFunction,
mStoredLine);
}
......@@ -865,7 +867,7 @@ class ProgramD3D::LoadBinaryTask : public ProgramD3D::GetExecutableTask
if (!mDataCopySucceeded)
{
mInfoLog << "Failed to copy program binary data to local buffer.";
return angle::Result::Stop;
return angle::Result::Incomplete;
}
gl::BinaryInputStream stream(mStreamData.data(), mStreamData.size());
......
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