// Hydra: now returns false if the ORIGINAL shader could not be activated // (missing texture, or incorrect shader script), true otherwise // the shader is still activated in all cases. bool CShader::Activate(){ Try_Activate(); if ( !m_pTexture ) { m_pTexture = QERApp_Texture_ForName2( SHADER_NOTEX ); RegisterActivate(); return false; } return true; }
void CShader::Activate() { Try_Activate(); if (!m_pTexture) { // use the shadernotex.jpg //++timo TODO: detect shadernotex.jpg not found and give an error message! m_pTexture = QERApp_Texture_ForName2( "textures/radiant/shadernotex" ); RegisterActivate(); } }