Skip to content

Commit f89e5c5

Browse files
committed
MaterialSystem: use SetUniform_DepthMapBindless()
1 parent acfc25a commit f89e5c5

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
@@ -1663,8 +1663,10 @@ void MaterialSystem::DepthReduction() {
16631663
uint32_t globalWorkgroupX = ( width + 7 ) / 8;
16641664
uint32_t globalWorkgroupY = ( height + 7 ) / 8;
16651665

1666-
// FIXME: u_DepthMap object on the shader is not actually used
1667-
GL_Bind( tr.currentDepthImage );
1666+
gl_depthReductionShader->SetUniform_DepthMapBindless(
1667+
GL_BindToTMU( 0, tr.currentDepthImage )
1668+
);
1669+
16681670
glBindImageTexture( 2, depthImage->texnum, 0, GL_FALSE, 0, GL_WRITE_ONLY, GL_R32F );
16691671

16701672
gl_depthReductionShader->SetUniform_InitialDepthLevel( true );

0 commit comments

Comments
 (0)