From 9acd5a61a6ada22e0a7864e7a7732e955dcc2271 Mon Sep 17 00:00:00 2001 From: Spoike Date: Mon, 13 Feb 2012 04:11:11 +0000 Subject: [PATCH] trying to fix q2. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3986 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/m_mp3.c | 3 +++ engine/gl/gl_vidnt.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/engine/client/m_mp3.c b/engine/client/m_mp3.c index 41e6ee64d..83f194e57 100644 --- a/engine/client/m_mp3.c +++ b/engine/client/m_mp3.c @@ -1921,6 +1921,9 @@ qboolean Media_PlayFilm(char *name) cin_t *cin; static char sname[MAX_QPATH]; + if (!qrenderer) + return false; + if (videoshader) { R_UnloadShader(videoshader); diff --git a/engine/gl/gl_vidnt.c b/engine/gl/gl_vidnt.c index 92c2e1242..2f9e81dd3 100644 --- a/engine/gl/gl_vidnt.c +++ b/engine/gl/gl_vidnt.c @@ -264,7 +264,7 @@ qboolean GLInitialise (char *renderer) Q_strncpyz(reqminidriver, renderer, sizeof(reqminidriver)); Q_strncpyz(opengldllname, renderer, sizeof(opengldllname)); - if (*renderer) + if (*renderer && stricmp(renderer, "opengl32.dll") && stricmp(renderer, "opengl32")) { Con_DPrintf ("Loading renderer dll \"%s\"", renderer); hInstGL = LoadLibrary(opengldllname);