GS/OpenGL: Use feature flag for D32F/D32FS8 selection

This commit is contained in:
Connor McLaughlin 2022-04-22 21:21:02 +10:00 committed by refractionpcsx2
parent eeb09c54d8
commit 9f8911536a
1 changed files with 1 additions and 1 deletions

View File

@ -1627,7 +1627,7 @@ void GSDeviceOGL::OMAttachDs(GSTextureOGL* ds)
{
GLState::ds = id;
const GLenum target = GLLoader::found_framebuffer_fetch ? GL_DEPTH_ATTACHMENT : GL_DEPTH_STENCIL_ATTACHMENT;
const GLenum target = m_features.framebuffer_fetch ? GL_DEPTH_ATTACHMENT : GL_DEPTH_STENCIL_ATTACHMENT;
glFramebufferTexture2D(GL_DRAW_FRAMEBUFFER, target, GL_TEXTURE_2D, id, 0);
}
}