Skip to content

Commit

Permalink
#6081: Remove the old switch statement, it's no longer of use
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Sep 4, 2022
1 parent 263514a commit 4b80af7
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions radiantcore/rendersystem/backend/OpenGLShader.cpp
Expand Up @@ -703,21 +703,6 @@ void OpenGLShader::constructFromMaterial(const MaterialPtr& material)

void OpenGLShader::construct()
{
switch (_name[0])
{
// greebo: For a small amount of commits, I'll leave these here to catch my attention
case '(': // fill shader
case '[':
case '<': // wireframe shader
case '{': // cam + wireframe shader
case '$': // hardcoded legacy stuff
{
rWarning() << "Legacy shader request encountered" << std::endl;
assert(false);
return;
}
}

// Construct the shader from the material definition
constructFromMaterial(GlobalMaterialManager().getMaterial(_name));
enableViewType(RenderViewType::Camera);
Expand Down

0 comments on commit 4b80af7

Please sign in to comment.