mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-22 20:11:44 +00:00
Don't crash when trying to use d3d.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1960 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
f2c0995cfc
commit
01c3544aeb
1 changed files with 3 additions and 3 deletions
|
@ -263,9 +263,6 @@ qboolean GLInitialise (char *renderer)
|
|||
qGetDeviceGammaRamp = (void *)getglfunc("wglGetDeviceGammaRamp3DFX");
|
||||
qSetDeviceGammaRamp = (void *)getglfunc("wglSetDeviceGammaRamp3DFX");
|
||||
|
||||
if (!qGetDeviceGammaRamp) qGetDeviceGammaRamp = (void*)GetDeviceGammaRamp;
|
||||
if (!qSetDeviceGammaRamp) qSetDeviceGammaRamp = (void*)SetDeviceGammaRamp;
|
||||
|
||||
TRACE(("dbg: GLInitialise: got wgl funcs\n"));
|
||||
|
||||
return true;
|
||||
|
@ -818,6 +815,9 @@ qboolean VID_AttachGL (rendererstate_t *info)
|
|||
qglClear(GL_COLOR_BUFFER_BIT);
|
||||
qSwapBuffers(maindc);
|
||||
|
||||
if (!qGetDeviceGammaRamp) qGetDeviceGammaRamp = (void*)GetDeviceGammaRamp;
|
||||
if (!qSetDeviceGammaRamp) qSetDeviceGammaRamp = (void*)SetDeviceGammaRamp;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue