Don't initialise the UI without opengl. This might be relaxable, but not at the moment.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1482 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-10-16 03:54:43 +00:00
parent 49886f4096
commit 0ba371677b

View file

@ -1477,7 +1477,10 @@ void UI_StringChanged(int num)
void UI_Reset(void)
{
keycatcher &= ~2;
if (uivm)
if (!Draw_SafeCachePic || qrenderer != QR_OPENGL) //no renderer loaded
UI_Stop();
else if (uivm)
VM_Call(uivm, UI_INIT);
}
@ -1576,6 +1579,9 @@ void UI_Start (void)
if (!Draw_SafeCachePic) //no renderer loaded
return;
if (qrenderer != QR_OPENGL)
return;
uivm = VM_Create(NULL, "vm/qwui", UI_SystemCalls, UI_SystemCallsEx);
if (!uivm) //broken currently, I believe.
uivm = VM_Create(NULL, "vm/ui", UI_SystemCalls, UI_SystemCallsEx);