From 0ba371677b3c778facfdebdac2596bda5a46a965 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sun, 16 Oct 2005 03:54:43 +0000 Subject: [PATCH] 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 --- engine/client/cl_ui.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/engine/client/cl_ui.c b/engine/client/cl_ui.c index 012cdaafb..00ad68e21 100644 --- a/engine/client/cl_ui.c +++ b/engine/client/cl_ui.c @@ -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);