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