[effects/cube] Drop warnings if not with shader support

We require shaders nowadays for the Cube effect.
This commit is contained in:
Martin Gräßlin 2015-07-31 10:55:36 +02:00
parent 720d10cee8
commit e476cbc0d2

View file

@ -1496,8 +1496,6 @@ void CubeEffect::toggleCylinder()
useShaders = loadShader();
if (useShaders)
toggle(Cylinder);
else
qCritical() << "Sorry shaders are not available - cannot activate Cylinder";
}
void CubeEffect::toggleSphere()
@ -1507,8 +1505,6 @@ void CubeEffect::toggleSphere()
useShaders = loadShader();
if (useShaders)
toggle(Sphere);
else
qCritical() << "Sorry shaders are not available - cannot activate Sphere";
}
void CubeEffect::toggle(CubeMode newMode)