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);