trying to fix q2.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3986 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2012-02-13 04:11:11 +00:00
parent 3c4100a2a9
commit 9acd5a61a6
2 changed files with 4 additions and 1 deletions

View file

@ -1921,6 +1921,9 @@ qboolean Media_PlayFilm(char *name)
cin_t *cin; cin_t *cin;
static char sname[MAX_QPATH]; static char sname[MAX_QPATH];
if (!qrenderer)
return false;
if (videoshader) if (videoshader)
{ {
R_UnloadShader(videoshader); R_UnloadShader(videoshader);

View file

@ -264,7 +264,7 @@ qboolean GLInitialise (char *renderer)
Q_strncpyz(reqminidriver, renderer, sizeof(reqminidriver)); Q_strncpyz(reqminidriver, renderer, sizeof(reqminidriver));
Q_strncpyz(opengldllname, renderer, sizeof(opengldllname)); Q_strncpyz(opengldllname, renderer, sizeof(opengldllname));
if (*renderer) if (*renderer && stricmp(renderer, "opengl32.dll") && stricmp(renderer, "opengl32"))
{ {
Con_DPrintf ("Loading renderer dll \"%s\"", renderer); Con_DPrintf ("Loading renderer dll \"%s\"", renderer);
hInstGL = LoadLibrary(opengldllname); hInstGL = LoadLibrary(opengldllname);