mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 21:33:59 +00:00
Remove Tegra support hacks
Signed-off-by: renderexpert <expert@renderconsulting.co.uk>
This commit is contained in:
committed by
Konstantin Pastbin
parent
a406462549
commit
9b3507211f
@@ -23,26 +23,14 @@ GLGpuProgram::GLGpuProgram(std::string const & programName,
|
||||
if (!GLFunctions::glLinkProgram(m_programID, errorLog))
|
||||
LOG(LERROR, ("Program ", programName, " link error = ", errorLog));
|
||||
|
||||
// On Tegra3 glGetActiveUniform isn't work if you detach shaders after linking.
|
||||
LoadUniformLocations();
|
||||
|
||||
// On Tegra2 we cannot detach shaders at all.
|
||||
// https://devtalk.nvidia.com/default/topic/528941/alpha-blending-not-working-on-t20-and-t30-under-ice-cream-sandwich/
|
||||
if (!SupportManager::Instance().IsTegraDevice())
|
||||
{
|
||||
GLFunctions::glDetachShader(m_programID, m_vertexShader->GetID());
|
||||
GLFunctions::glDetachShader(m_programID, m_fragmentShader->GetID());
|
||||
}
|
||||
GLFunctions::glDetachShader(m_programID, m_vertexShader->GetID());
|
||||
GLFunctions::glDetachShader(m_programID, m_fragmentShader->GetID());
|
||||
}
|
||||
|
||||
GLGpuProgram::~GLGpuProgram()
|
||||
{
|
||||
if (SupportManager::Instance().IsTegraDevice())
|
||||
{
|
||||
GLFunctions::glDetachShader(m_programID, m_vertexShader->GetID());
|
||||
GLFunctions::glDetachShader(m_programID, m_fragmentShader->GetID());
|
||||
}
|
||||
|
||||
GLFunctions::glDeleteProgram(m_programID);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user