From a956cfe3dd41561b2cf13a9b96a01b96eb41dd23 Mon Sep 17 00:00:00 2001 From: water Date: Sat, 4 Nov 2023 10:15:30 -0400 Subject: [PATCH] [jak2] Try to fix glow again --- game/graphics/opengl_renderer/sprite/GlowRenderer.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/game/graphics/opengl_renderer/sprite/GlowRenderer.cpp b/game/graphics/opengl_renderer/sprite/GlowRenderer.cpp index 90a9d1e8d80..d234786902c 100644 --- a/game/graphics/opengl_renderer/sprite/GlowRenderer.cpp +++ b/game/graphics/opengl_renderer/sprite/GlowRenderer.cpp @@ -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);