Skip to content

Fix call to drawBuffers in SubmissionContext

Paul Lemire requested to merge lemirep/qt3d:patch2 into kde/5.15

Implementations of GraphicsHelperInterface::drawBuffers expect an array of zero-based attachment point indexes (GL_COLOR_ATTACHMENT0 is added to the indexes internally), so we can't convert the attachment index to an OpenGL enum before calling drawBuffers.

Change-Id: Ibc8af9f7c402b055c5391ad673b815c1fb65a40a Reviewed-by: Paul Lemire (cherry picked from commit 0157b930) Reviewed-by: Qt Cherry-pick Bot

Merge request reports