Skip to content

Commit

Permalink
Initialize m_defaultFBO correctly for FramebufferBlitMultiToSingleSam…
Browse files Browse the repository at this point in the history
…pledTestCase

The test module hard-coded the m_defaultFBO to zero, which is only correct
when using the default framebuffer.

Affects:

KHR-GL*.framebuffer_blit.framebuffer_blit_functionality_multisampled_to_singlesampled_blit

Components: OpenGL

VK-GL-CTS issue: 5211

Change-Id: I4d69cb7b12a624aa5d9f6aba65dca5e659ca23b8
  • Loading branch information
pdaniell-nv authored and lordalcol committed Jul 25, 2024
1 parent 2e137f7 commit 1ba161b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ void FramebufferBlitMultiToSingleSampledTestCase::init()
m_defaultProg = setup_shaders(m_default_vert_shader, m_default_frag_shader);
m_renderProg = setup_shaders(m_render_vert_shader, m_render_frag_shader);

m_defaultFBO = m_context.getRenderContext().getDefaultFramebuffer();
int bufWidth = m_context.getRenderTarget().getWidth();
int bufHeight = m_context.getRenderTarget().getHeight();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ class FramebufferBlitMultiToSingleSampledTestCase : public deqp::TestCase
glw::GLuint m_stcil_type;
glw::GLuint m_stcil_format;

static const glw::GLuint m_defaultFBO = 0;
glw::GLuint m_defaultFBO;

blt::MultiColorTestSetup m_setup;

Expand Down

0 comments on commit 1ba161b

Please sign in to comment.