Fixed a crash when using rubber band in legacy pipeline.

Fixes #3338
This commit is contained in:
Deve 2018-07-02 21:41:48 +02:00
parent 0518d422c6
commit 872f214c41

View File

@ -47,7 +47,7 @@ RubberBand::RubberBand(Plunger *plunger, AbstractKart *kart)
{
m_attached_state = RB_TO_PLUNGER;
#ifndef SERVER_ONLY
if (ProfileWorld::isNoGraphics())
if (ProfileWorld::isNoGraphics() || !CVS->isGLSL())
{
return;
}