mirror of
https://github.com/nillerusr/source-engine.git
synced 2024-12-22 14:16:50 +00:00
materialsystem: fix rendering bugs with togl
This commit is contained in:
parent
cf467ff7c8
commit
0ffcbff303
@ -1881,7 +1881,13 @@ void CMaterialSystem::ReadConfigFromConVars( MaterialSystem_Config_t *pConfig )
|
|||||||
pConfig->bMipMapTextures = mat_mipmaptextures.GetInt() ? true : false;
|
pConfig->bMipMapTextures = mat_mipmaptextures.GetInt() ? true : false;
|
||||||
pConfig->nShowMipLevels = mat_showmiplevels.GetInt();
|
pConfig->nShowMipLevels = mat_showmiplevels.GetInt();
|
||||||
pConfig->bReverseDepth = mat_reversedepth.GetInt() ? true : false;
|
pConfig->bReverseDepth = mat_reversedepth.GetInt() ? true : false;
|
||||||
|
|
||||||
|
#ifdef DX_TO_GL_ABSTRACTION
|
||||||
|
pConfig->bBufferPrimitives = false; // nillerusr: causes rendering bugs and sefaults with nvidia driver
|
||||||
|
#else
|
||||||
pConfig->bBufferPrimitives = mat_bufferprimitives.GetInt() ? true : false;
|
pConfig->bBufferPrimitives = mat_bufferprimitives.GetInt() ? true : false;
|
||||||
|
#endif
|
||||||
|
|
||||||
pConfig->bDrawFlat = mat_drawflat.GetInt() ? true : false;
|
pConfig->bDrawFlat = mat_drawflat.GetInt() ? true : false;
|
||||||
pConfig->bSoftwareLighting = mat_softwarelighting.GetInt() ? true : false;
|
pConfig->bSoftwareLighting = mat_softwarelighting.GetInt() ? true : false;
|
||||||
pConfig->proxiesTestMode = mat_proxy.GetInt();
|
pConfig->proxiesTestMode = mat_proxy.GetInt();
|
||||||
|
Loading…
Reference in New Issue
Block a user