Disabled some GL_CheckErrors() calls that can be a slowdown

This commit is contained in:
Robert Beckebans 2014-05-18 15:17:15 +02:00
parent f560e29183
commit 185f2aaf90
5 changed files with 3 additions and 6 deletions

View file

@ -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 );
}
}

View file

@ -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 );

View file

@ -2395,7 +2395,7 @@ void idRenderSystemLocal::Shutdown()
renderModelManager->Shutdown();
idCinematic::ShutdownCinematic( );
idCinematic::ShutdownCinematic();
globalImages->Shutdown();

View file

@ -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
{

View file

@ -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"