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 @@ -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-
20352012void GLShaderManager::BindAttribLocations ( GLuint program ) const
20362013{
20372014 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