D3D11: Only apply attachments that are written by the program

This works around a bug in the AMD driver that writes 0's to the
first attachment if it isn't written by the pixel shader.

BUG=angleproject:2048

Change-Id: I384fd60c0e0a37fbc0fd7b69fe1ec74fe4ffac8f
Reviewed-on: https://chromium-review.googlesource.com/531630
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
diff --git a/src/libANGLE/Program.h b/src/libANGLE/Program.h
index 9a59f15..c47f18e 100644
--- a/src/libANGLE/Program.h
+++ b/src/libANGLE/Program.h
@@ -379,6 +379,7 @@
     {
         return mState.mOutputVariableTypes;
     }
+    DrawBufferMask getActiveOutputVariables() const { return mState.mActiveOutputVariables; }
 
     void getActiveUniform(GLuint index,
                           GLsizei bufsize,