- add GL debug group for the 2D drawer
- remove pointless opengl calls from effects that are doing nothing
This commit is contained in:
parent
723b18f2cd
commit
ba09af7cbb
2 changed files with 5 additions and 0 deletions
|
|
@ -833,6 +833,9 @@ void FGLRenderBuffers::CompileEffectShaders()
|
|||
|
||||
void FGLRenderBuffers::RenderEffect(const FString &name)
|
||||
{
|
||||
if (hw_postprocess.Effects[name].Size() == 0)
|
||||
return;
|
||||
|
||||
FGLDebug::PushGroup(name.GetChars());
|
||||
|
||||
FGLPostProcessState savedState;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue