File tree Expand file tree Collapse file tree 2 files changed +0
-24
lines changed
Expand file tree Collapse file tree 2 files changed +0
-24
lines changed Original file line number Diff line number Diff 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-
20101987void GLShaderManager::BindAttribLocations ( GLuint program ) const
20111988{
20121989 for ( uint32_t i = 0 ; i < ATTR_INDEX_MAX; i++ )
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments