Skip to content

Commit 0ffcbff

Browse files
committed
materialsystem: fix rendering bugs with togl
1 parent cf467ff commit 0ffcbff

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

materialsystem/cmaterialsystem.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -1881,7 +1881,13 @@ void CMaterialSystem::ReadConfigFromConVars( MaterialSystem_Config_t *pConfig )
18811881
pConfig->bMipMapTextures = mat_mipmaptextures.GetInt() ? true : false;
18821882
pConfig->nShowMipLevels = mat_showmiplevels.GetInt();
18831883
pConfig->bReverseDepth = mat_reversedepth.GetInt() ? true : false;
1884+
1885+
#ifdef DX_TO_GL_ABSTRACTION
1886+
pConfig->bBufferPrimitives = false; // nillerusr: causes rendering bugs and sefaults with nvidia driver
1887+
#else
18841888
pConfig->bBufferPrimitives = mat_bufferprimitives.GetInt() ? true : false;
1889+
#endif
1890+
18851891
pConfig->bDrawFlat = mat_drawflat.GetInt() ? true : false;
18861892
pConfig->bSoftwareLighting = mat_softwarelighting.GetInt() ? true : false;
18871893
pConfig->proxiesTestMode = mat_proxy.GetInt();

0 commit comments

Comments
 (0)