D3D: Fix FramebufferD3D reading the wrong program executable

Read the currently bound program executable instead of the possibly
incomplete one from the currently bound program.

Bug: angleproject:6358
Bug: angleproject:8297
Change-Id: Ieda50767b20562436ea9f9bf541965205b578017
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4842929
Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org>
Commit-Queue: Geoff Lang <geofflang@chromium.org>
This commit is contained in:
Geoff Lang
2023-09-05 12:55:50 -04:00
committed by Angle LUCI CQ
parent 93402d6f9a
commit 0ff71d5ecd

View File

@@ -311,7 +311,7 @@ angle::Result FramebufferD3D::syncState(const gl::Context *context,
const gl::AttachmentList &FramebufferD3D::getColorAttachmentsForRender(const gl::Context *context)
{
gl::DrawBufferMask activeProgramOutputs =
context->getState().getProgram()->getExecutable().getActiveOutputVariablesMask();
context->getState().getProgramExecutable()->getActiveOutputVariablesMask();
if (mColorAttachmentsForRender.valid() && mCurrentActiveProgramOutputs == activeProgramOutputs)
{