[Piglit] [PATCH 05/15] arb_direct_state_access: Testing glCheckNamedFramebufferStatus.
Laura Ekstrand
laura at jlekstrand.net
Thu Mar 5 18:01:15 PST 2015
---
tests/spec/arb_direct_state_access/framebufferblit.c | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/tests/spec/arb_direct_state_access/framebufferblit.c b/tests/spec/arb_direct_state_access/framebufferblit.c
index e405dec..2866c78 100644
--- a/tests/spec/arb_direct_state_access/framebufferblit.c
+++ b/tests/spec/arb_direct_state_access/framebufferblit.c
@@ -109,8 +109,8 @@ display_texture(int x, int y, GLuint tex, int layers)
GL_COLOR_ATTACHMENT0,
tex, 0, i);
- glBindFramebuffer(GL_FRAMEBUFFER, tempFBO);
- fbStatus = glCheckFramebufferStatus(GL_FRAMEBUFFER);
+ fbStatus = glCheckNamedFramebufferStatus(tempFBO,
+ GL_FRAMEBUFFER);
if (fbStatus != GL_FRAMEBUFFER_COMPLETE) {
printf("Framebuffer Status: %s\n",
piglit_get_gl_enum_name(fbStatus));
@@ -219,8 +219,7 @@ testFramebufferBlitLayered(int x, int y, bool srcLayered, bool dstLayered)
glNamedFramebufferTexture(srcFBO, GL_COLOR_ATTACHMENT0, srcTex, 0);
/* Check source framebuffer status */
- glBindFramebuffer(GL_FRAMEBUFFER, srcFBO);
- fbStatus = glCheckFramebufferStatus(GL_FRAMEBUFFER);
+ fbStatus = glCheckNamedFramebufferStatus(srcFBO, GL_FRAMEBUFFER);
if (fbStatus != GL_FRAMEBUFFER_COMPLETE) {
printf("testFramebufferBlitLayered srcFBO Status: %s\n",
piglit_get_gl_enum_name(fbStatus));
@@ -236,8 +235,7 @@ testFramebufferBlitLayered(int x, int y, bool srcLayered, bool dstLayered)
glNamedFramebufferTexture(dstFBO, GL_COLOR_ATTACHMENT0, dstTex, 0);
/* Check destination framebuffer status */
- glBindFramebuffer(GL_FRAMEBUFFER, dstFBO);
- fbStatus = glCheckFramebufferStatus(GL_FRAMEBUFFER);
+ fbStatus = glCheckNamedFramebufferStatus(dstFBO, GL_FRAMEBUFFER);
if (fbStatus != GL_FRAMEBUFFER_COMPLETE) {
printf("testFramebufferBlitLayered dstFBO Status: %s\n",
piglit_get_gl_enum_name(fbStatus));
--
2.1.0
More information about the Piglit
mailing list