fixed infinite recursion in vid_preferbackend.

This commit is contained in:
Professor Hastig 2023-12-28 12:20:15 +01:00 committed by Christoph Oelckers
parent 51e014c858
commit 16e8e71971

View file

@ -103,8 +103,9 @@ CUSTOM_CVAR(Int, vid_preferbackend, 1, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_N
{
#ifdef HAVE_GLES2
case 3:
case 2:
self = 2;
return; // beware of recursions here. Assigning to 'self' will recursively call this handler again.
case 2:
Printf("Selecting OpenGLES 2.0 backend...\n");
break;
#endif