Use GL_FRAMEBUFFER instead of GL_[DRAW|READ]_FRAMEBUFFER with GLES2
authorTapani Pälli <tapani.palli@intel.com>
Wed, 22 Sep 2021 12:05:48 +0000 (15:05 +0300)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Fri, 22 Oct 2021 16:59:29 +0000 (16:59 +0000)
Affects:
KHR-GLES2.texture_3d.copy_sub_image.negative
KHR-GLES2.texture_3d.copy_sub_image.rgba

Components: OpenGL
VK-GL-CTS issue: 3133

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Change-Id: Ia32e16e6231b53c9f58e99d85e6178dca5b7f012

external/openglcts/modules/gles2/es2cTexture3DTests.cpp

index bde98f9..cf43a1b 100644 (file)
@@ -835,7 +835,7 @@ CopyTexSubImage3DCase::IterateResult CopyTexSubImage3DCase::iterate(void)
        GLU_EXPECT_NO_ERROR(gl.getError(),
                                                "Could not setup texture object for draw framebuffer color attachment.");
 
-       gl.framebufferTexture2D(GL_DRAW_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, new_dst_to, 0);
+       gl.framebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, new_dst_to, 0);
 
        GLU_EXPECT_NO_ERROR(gl.getError(),
                                                "Could not attach texture object to draw framebuffer color attachment.");
@@ -1554,8 +1554,8 @@ NegativeCopyTexSubImage3DCase::IterateResult NegativeCopyTexSubImage3DCase::iter
                gl.bindTexture(GL_TEXTURE_3D, texture);
                callTexImage3D(GL_TEXTURE_3D, 0, GL_RGBA, 4, 4, 4, 0, GL_RGBA, GL_UNSIGNED_BYTE, 0);
                gl.genFramebuffers(1, &fbo);
-               gl.bindFramebuffer(GL_READ_FRAMEBUFFER, fbo);
-               gl.checkFramebufferStatus(GL_READ_FRAMEBUFFER);
+               gl.bindFramebuffer(GL_FRAMEBUFFER, fbo);
+               gl.checkFramebufferStatus(GL_FRAMEBUFFER);
 
                const char* message = "GL_INVALID_FRAMEBUFFER_OPERATION is generated if the currently "
                                                          "bound framebuffer is not framebuffer complete.";