mirror of
https://github.com/godotengine/godot-angle-static.git
synced 2026-01-06 02:09:55 +03:00
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:
committed by
Angle LUCI CQ
parent
93402d6f9a
commit
0ff71d5ecd
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user