[Piglit] [PATCH 12/15] arb_direct_state_access: Testing glNamedFramebufferDrawBuffer.
Laura Ekstrand
laura at jlekstrand.net
Thu Mar 5 18:01:22 PST 2015
---
tests/spec/arb_direct_state_access/drawbuffers.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/tests/spec/arb_direct_state_access/drawbuffers.c b/tests/spec/arb_direct_state_access/drawbuffers.c
index 6e7ecf5..99ebf06 100644
--- a/tests/spec/arb_direct_state_access/drawbuffers.c
+++ b/tests/spec/arb_direct_state_access/drawbuffers.c
@@ -54,7 +54,11 @@ static void
clear_to_color(float color[4], int att)
{
glClearColor(color[0], color[1], color[2], color[3]);
- glDrawBuffer(GL_COLOR_ATTACHMENT0 + att);
+
+ glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0);
+ glNamedFramebufferDrawBuffer(fbo, GL_COLOR_ATTACHMENT0 + att);
+ glBindFramebuffer(GL_DRAW_FRAMEBUFFER, fbo);
+
glClear(GL_COLOR_BUFFER_BIT);
}
--
2.1.0
More information about the Piglit
mailing list