Skip to content

Commit be4a3cd

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 385156a commit be4a3cd

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

src/engine/renderer/gl_shader.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2964,14 +2964,9 @@ GLShader_depthReduction::GLShader_depthReduction() :
29642964
false, "depthReduction" ),
29652965
u_ViewWidth( this ),
29662966
u_ViewHeight( this ),
2967-
u_DepthMap( this ),
29682967
u_InitialDepthLevel( this ) {
29692968
}
29702969

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

src/engine/renderer/gl_shader.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3765,11 +3765,9 @@ class GLShader_depthReduction :
37653765
public GLShader,
37663766
public u_ViewWidth,
37673767
public u_ViewHeight,
3768-
public u_DepthMap,
37693768
public u_InitialDepthLevel {
37703769
public:
37713770
GLShader_depthReduction();
3772-
void SetShaderProgramUniforms( ShaderProgramDescriptor* shaderProgram ) override;
37733771
};
37743772

37753773
class GLShader_clearSurfaces :

0 commit comments

Comments
 (0)