"Apply" menu option now works on D3D builds (when changing 3d, 2d resolutions etc)
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3771 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
8238e06d3e
commit
a39d6740c5
1 changed files with 13 additions and 2 deletions
|
@ -975,17 +975,28 @@ qboolean M_VideoApply (union menuoption_s *op,struct menu_s *menu,int key)
|
|||
|
||||
switch(info->renderer->selectedoption)
|
||||
{
|
||||
#ifdef GLQUAKE
|
||||
#if defined(GLQUAKE) && !defined(D3DQUAKE) // Just OpenGL client
|
||||
case 0:
|
||||
Cbuf_AddText("setrenderer gl\n", RESTRICT_LOCAL);
|
||||
break;
|
||||
#endif
|
||||
#ifdef D3DQUAKE
|
||||
|
||||
#if defined(D3DQUAKE) && !defined(GLQUAKE) // Just Direct3D client
|
||||
case 0:
|
||||
Cbuf_AddText("setrenderer d3d\n", RESTRICT_LOCAL);
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if defined(GLQUAKE) && defined(D3DQUAKE) // OpenGL + Direct3D = Merged
|
||||
case 0:
|
||||
Cbuf_AddText("setrenderer gl\n", RESTRICT_LOCAL);
|
||||
break;
|
||||
case 1:
|
||||
Cbuf_AddText("setrenderer d3d\n", RESTRICT_LOCAL);
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
|
||||
M_RemoveMenu(menu);
|
||||
Cbuf_AddText("menu_video\n", RESTRICT_LOCAL);
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue