Skip to content

Commit 07b35dc

Browse files
committed
Remove GLShader_depthReduction::SetShaderProgramUniforms
This shader has hard-coded texture unit bindings in the GLSL, so setting uniforms has no effect.
1 parent 9c5d2c7 commit 07b35dc

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/engine/renderer/gl_shader.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2968,10 +2968,6 @@ GLShader_depthReduction::GLShader_depthReduction() :
29682968
u_InitialDepthLevel( this ) {
29692969
}
29702970

2971-
void GLShader_depthReduction::SetShaderProgramUniforms( ShaderProgramDescriptor* shaderProgram ) {
2972-
glUniform1i( glGetUniformLocation( shaderProgram->id, "u_DepthMap" ), 0 );
2973-
}
2974-
29752971
GLShader_clearSurfaces::GLShader_clearSurfaces() :
29762972
GLShader( "clearSurfaces",
29772973
false, "clearSurfaces" ),

src/engine/renderer/gl_shader.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3769,7 +3769,6 @@ class GLShader_depthReduction :
37693769
public u_InitialDepthLevel {
37703770
public:
37713771
GLShader_depthReduction();
3772-
void SetShaderProgramUniforms( ShaderProgramDescriptor* shaderProgram ) override;
37733772
};
37743773

37753774
class GLShader_clearSurfaces :

0 commit comments

Comments
 (0)