mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-04-24 02:32:18 +00:00
Disabled some GL_CheckErrors() calls that can be a slowdown
This commit is contained in:
parent
f560e29183
commit
185f2aaf90
5 changed files with 3 additions and 6 deletions
|
@ -337,7 +337,6 @@ void idImage::SetTexParameters()
|
|||
//glTexParameteri( target, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE );
|
||||
glTexParameteri( target, GL_TEXTURE_COMPARE_MODE, GL_COMPARE_R_TO_TEXTURE );
|
||||
glTexParameteri( target, GL_TEXTURE_COMPARE_FUNC, GL_LEQUAL );
|
||||
//glTexParameteri( target, GL_DEPTH_TEXTURE_MODE, GL_INTENSITY );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -2048,7 +2048,7 @@ void idRenderProgManager::CommitUniforms()
|
|||
{
|
||||
glUniform4fv( uniformLocation.uniformIndex, 1, glslUniforms[uniformLocation.parmIndex].ToFloatPtr() );
|
||||
|
||||
#if 1
|
||||
#if 0
|
||||
if( GL_CheckErrors() )
|
||||
{
|
||||
const char* parmName = GetGLSLParmName( uniformLocation.parmIndex );
|
||||
|
|
|
@ -2395,7 +2395,7 @@ void idRenderSystemLocal::Shutdown()
|
|||
|
||||
renderModelManager->Shutdown();
|
||||
|
||||
idCinematic::ShutdownCinematic( );
|
||||
idCinematic::ShutdownCinematic();
|
||||
|
||||
globalImages->Shutdown();
|
||||
|
||||
|
|
|
@ -1368,7 +1368,7 @@ static void RB_RenderInteractions( const drawSurf_t* surfList, const viewLight_t
|
|||
}
|
||||
else if( r_shadowMapSamples.GetInteger() == 4 )
|
||||
{
|
||||
globalImages->jitterImage1->Bind();
|
||||
globalImages->jitterImage4->Bind();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -1467,8 +1467,6 @@ void RB_ShutdownDebugTools();
|
|||
|
||||
#include "ResolutionScale.h"
|
||||
#include "RenderLog.h"
|
||||
//#include "AutoRender.h"
|
||||
//#include "AutoRenderBink.h"
|
||||
#include "jobs/ShadowShared.h"
|
||||
#include "jobs/prelightshadowvolume/PreLightShadowVolume.h"
|
||||
#include "jobs/staticshadowvolume/StaticShadowVolume.h"
|
||||
|
|
Loading…
Reference in a new issue