Skip to content

Commit ac7b48e

Browse files
committed
gl_shader: delete unused GLShaderManager::LinkProgram()
1 parent adfb47c commit ac7b48e

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

src/engine/renderer/gl_shader.cpp

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1984,29 +1984,6 @@ std::string GLShaderManager::GetInfoLog( GLuint object ) const
19841984
return out;
19851985
}
19861986

1987-
void GLShaderManager::LinkProgram( GLuint program ) const
1988-
{
1989-
GLint linked;
1990-
1991-
#ifdef GL_ARB_get_program_binary
1992-
// Apparently, this is necessary to get the binary program via glGetProgramBinary
1993-
if( glConfig.getProgramBinaryAvailable )
1994-
{
1995-
glProgramParameteri( program, GL_PROGRAM_BINARY_RETRIEVABLE_HINT, GL_TRUE );
1996-
}
1997-
#endif
1998-
glLinkProgram( program );
1999-
2000-
glGetProgramiv( program, GL_LINK_STATUS, &linked );
2001-
2002-
if ( !linked )
2003-
{
2004-
Log::Warn( "Link log:" );
2005-
Log::Warn( GetInfoLog( program ) );
2006-
ThrowShaderError( "Shaders failed to link!" );
2007-
}
2008-
}
2009-
20101987
void GLShaderManager::BindAttribLocations( GLuint program ) const
20111988
{
20121989
for ( uint32_t i = 0; i < ATTR_INDEX_MAX; i++ )

src/engine/renderer/gl_shader.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,6 @@ class GLShaderManager {
550550
std::string BuildDeformShaderText( const std::string& steps );
551551
std::string ProcessInserts( const std::string& shaderText ) const;
552552

553-
void LinkProgram( GLuint program ) const;
554553
void BindAttribLocations( GLuint program ) const;
555554
void PrintShaderSource( Str::StringRef programName, GLuint object, std::vector<InfoLogEntry>& infoLogLines ) const;
556555

0 commit comments

Comments
 (0)