mirror of https://github.com/PCSX2/pcsx2.git
GS/OpenGL: Use feature flag for D32F/D32FS8 selection
This commit is contained in:
parent
eeb09c54d8
commit
9f8911536a
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue