On Thu, Mar 5, 2015 at 6:01 PM, Laura Ekstrand <[email protected]> wrote: > --- > 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 > > _______________________________________________ > Piglit mailing list > [email protected] > http://lists.freedesktop.org/mailman/listinfo/piglit
Reviewed-by: Anuj Phogat <[email protected]> _______________________________________________ Piglit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/piglit
