Skip to content

Commit 6c4ff4b

Browse files
committed
MaterialSystem: use SetUniform_DepthMapBindless()
1 parent 16fb729 commit 6c4ff4b

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
@@ -1639,8 +1639,10 @@ void MaterialSystem::DepthReduction() {
16391639
uint32_t globalWorkgroupX = ( width + 7 ) / 8;
16401640
uint32_t globalWorkgroupY = ( height + 7 ) / 8;
16411641

1642-
// FIXME: u_DepthMap object on the shader is not actually used
1643-
GL_Bind( tr.currentDepthImage );
1642+
gl_depthReductionShader->SetUniform_DepthMapBindless(
1643+
GL_BindToTMU( 0, tr.currentDepthImage )
1644+
);
1645+
16441646
glBindImageTexture( 2, depthImage->texnum, 0, GL_FALSE, 0, GL_WRITE_ONLY, GL_R32F );
16451647

16461648
gl_depthReductionShader->SetUniform_InitialDepthLevel( true );

0 commit comments

Comments
 (0)