[jak2] Try to fix glow again (#3144)

Maybe fix https://github.com/open-goal/jak-project/issues/3065?
This commit is contained in:
water111
2023-11-04 10:30:22 -07:00
committed by GitHub
parent 959921e988
commit ae4ee9c0c6
@@ -191,8 +191,14 @@ GlowRenderer::GlowRenderer() {
m_ogl.probe_fbo_rgba_tex, 0);
glBindTexture(GL_TEXTURE_2D, m_ogl.probe_fbo_depth_tex);
glTexImage2D(GL_TEXTURE_2D, 0, GL_DEPTH_COMPONENT, m_ogl.probe_fbo_w, m_ogl.probe_fbo_h, 0,
GL_DEPTH_COMPONENT, GL_UNSIGNED_INT, NULL);
glTexImage2D(GL_TEXTURE_2D, // target
0, // level
GL_DEPTH24_STENCIL8, // internalformat
m_ogl.probe_fbo_w, // width
m_ogl.probe_fbo_h, // height
0, // border
GL_DEPTH_STENCIL, // format
GL_UNSIGNED_INT_24_8, NULL);
glFramebufferTexture2D(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_TEXTURE_2D,
m_ogl.probe_fbo_depth_tex, 0);