Skip to content

Commit

Permalink
fixed infinite recursion in vid_preferbackend.
Browse files Browse the repository at this point in the history
  • Loading branch information
prof-hastig committed Dec 28, 2023
1 parent eb2f263 commit f5352f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/common/rendering/v_video.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f5352f2

Please sign in to comment.