summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaura Ekstrand <laura@jlekstrand.net>2015-02-06 14:40:58 -0800
committerLaura Ekstrand <laura@jlekstrand.net>2015-03-09 16:20:45 -0700
commit84e09329c3b5fd2e0d0a8100b8b52ff7b50101bb (patch)
treeb8982036fc87f9921a0d6bd2b04c81e68b46e91b
parent88e4f1bf789f7c4da71c2f5354847855f748c2a3 (diff)
arb_direct_state_access: Testing glNamedFramebufferDrawBuffer.
-rw-r--r--tests/spec/arb_direct_state_access/drawbuffers.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/spec/arb_direct_state_access/drawbuffers.c b/tests/spec/arb_direct_state_access/drawbuffers.c
index 6e7ecf555..99ebf064a 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);
}