Skip to content

Commit 5764acf

Browse files
committed
gl_shader: delete unused GLShaderManager::LinkProgram()
1 parent 6f2b26a commit 5764acf

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
@@ -2009,29 +2009,6 @@ std::string GLShaderManager::GetInfoLog( GLuint object ) const
20092009
return out;
20102010
}
20112011

2012-
void GLShaderManager::LinkProgram( GLuint program ) const
2013-
{
2014-
GLint linked;
2015-
2016-
#ifdef GL_ARB_get_program_binary
2017-
// Apparently, this is necessary to get the binary program via glGetProgramBinary
2018-
if( glConfig.getProgramBinaryAvailable )
2019-
{
2020-
glProgramParameteri( program, GL_PROGRAM_BINARY_RETRIEVABLE_HINT, GL_TRUE );
2021-
}
2022-
#endif
2023-
glLinkProgram( program );
2024-
2025-
glGetProgramiv( program, GL_LINK_STATUS, &linked );
2026-
2027-
if ( !linked )
2028-
{
2029-
Log::Warn( "Link log:" );
2030-
Log::Warn( GetInfoLog( program ) );
2031-
ThrowShaderError( "Shaders failed to link!" );
2032-
}
2033-
}
2034-
20352012
void GLShaderManager::BindAttribLocations( GLuint program ) const
20362013
{
20372014
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)