mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-05 22:09:59 +03:00
fixed some unitialized variables
This commit is contained in:
@@ -2359,10 +2359,16 @@ static uint gPersistentBufferSize[kGLMNumBufferTypes] =
|
||||
|
||||
GLMContext::GLMContext( IDirect3DDevice9 *pDevice, GLMDisplayParams *params )
|
||||
{
|
||||
m_bUseSamplerObjects = true;
|
||||
if ( CommandLine()->CheckParm( "-gl_disablesamplerobjects" ) )
|
||||
m_nNumDirtySamplers = 0;
|
||||
|
||||
if( gGL->m_nDriverProvider == cGLDriverProviderARM )
|
||||
m_bUseSamplerObjects = true;
|
||||
else
|
||||
m_bUseSamplerObjects = false;
|
||||
|
||||
if ( CommandLine()->CheckParm( "-gl_enablesamplerobjects" ) )
|
||||
m_bUseSamplerObjects = true;
|
||||
|
||||
// Try to get some more free memory by relying on driver host copies instead of ours.
|
||||
// In some cases the driver will be able to discard their own host copy and rely on GPU
|
||||
// memory, reducing memory usage.
|
||||
|
||||
Reference in New Issue
Block a user