summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaura Ekstrand <laura@jlekstrand.net>2015-02-06 15:39:16 -0800
committerLaura Ekstrand <laura@jlekstrand.net>2015-03-09 16:20:45 -0700
commit5a997068eebaf172543cf805ca5a56e840c8b635 (patch)
treeba2addd332000a315d0f11e6e6947b961291ceca
parent84e09329c3b5fd2e0d0a8100b8b52ff7b50101bb (diff)
arb_direct_state_access: Testing NamedFramebufferReadBuffer.
-rw-r--r--tests/spec/arb_direct_state_access/drawbuffers.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/spec/arb_direct_state_access/drawbuffers.c b/tests/spec/arb_direct_state_access/drawbuffers.c
index 99ebf064a..840a39f70 100644
--- a/tests/spec/arb_direct_state_access/drawbuffers.c
+++ b/tests/spec/arb_direct_state_access/drawbuffers.c
@@ -65,7 +65,10 @@ clear_to_color(float color[4], int att)
static void
clear_subtest(float color[4], int att, const char *test_name)
{
- glReadBuffer(GL_COLOR_ATTACHMENT0 + att);
+ glBindFramebuffer(GL_READ_FRAMEBUFFER, 0);
+ glNamedFramebufferReadBuffer(fbo, GL_COLOR_ATTACHMENT0 + att);
+ glBindFramebuffer(GL_READ_FRAMEBUFFER, fbo);
+
piglit_check_gl_error(GL_NO_ERROR);
SUBTESTCONDITION(piglit_probe_rect_rgb(0, 0, piglit_width,
piglit_height, color), pass, test_name);