Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[jak2] Try to fix glow again #3144

Merged
merged 1 commit into from
Nov 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions game/graphics/opengl_renderer/sprite/GlowRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down