Use the correct attachment parameter when not the default FBO
authorPiers Daniell <pdaniell@nvidia.com>
Mon, 10 Jan 2022 23:14:49 +0000 (16:14 -0700)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Sat, 15 Jan 2022 05:54:48 +0000 (05:54 +0000)
commit501679ad2d24cbfbd70c35ec459034a7cde41a82
tree4e54c34c66164876337afda23eb2d4344580b686
parentde653090e0c1d4631bec538a0f5406ef96968fc1
Use the correct attachment parameter when not the default FBO

When using glGetFramebufferAttachmentParameteriv to query the
currently bound framebuffer, the attachment parameter is
different depending on whether the framebuffer is the default
framebuffer or not.

For the default framebuffer GL_DEPTH and GL_STENCIL can be
used, but for non-default these are invalid and
GL_DEPTH_ATTACHMENT and GL_STENCIL_ATTACHMENT must be used.

This CL updates the changes in CL 8180 and CL 8629 to
use the correct attachment parameter when not using
the default framebuffer.

VK-GL-CTS issue: 3092

Affects:
KHR-*.internalformat.renderbuffer.*

Test both with and without: --deqp-surface-type=fbo

Change-Id: Id5f27405861ec62b5fdd84e1a4c2668d8cb272a1
external/openglcts/modules/common/glcInternalformatTests.cpp