Skip to content

Commit df2dfde

Browse files
committed
MaterialSystem: use SetUniform_DepthMapBindless()
1 parent dd4890f commit df2dfde

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/engine/renderer/Material.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1657,8 +1657,10 @@ void MaterialSystem::DepthReduction() {
16571657
uint32_t globalWorkgroupX = ( width + 7 ) / 8;
16581658
uint32_t globalWorkgroupY = ( height + 7 ) / 8;
16591659

1660-
// FIXME: u_DepthMap object on the shader is not actually used
1661-
GL_Bind( tr.currentDepthImage );
1660+
gl_depthReductionShader->SetUniform_DepthMapBindless(
1661+
GL_BindToTMU( 0, tr.currentDepthImage )
1662+
);
1663+
16621664
glBindImageTexture( 2, depthImage->texnum, 0, GL_FALSE, 0, GL_WRITE_ONLY, GL_R32F );
16631665

16641666
gl_depthReductionShader->SetUniform_InitialDepthLevel( true );

0 commit comments

Comments
 (0)