diff --git a/src/gl/renderer/gl_renderbuffers.h b/src/gl/renderer/gl_renderbuffers.h index f9145648f2..432713d13e 100644 --- a/src/gl/renderer/gl_renderbuffers.h +++ b/src/gl/renderer/gl_renderbuffers.h @@ -1,5 +1,5 @@ -#ifndef __GL_RENDERBUFFERS_H -#define __GL_RENDERBUFFERS_H + +#pragma once #include "gl/shaders/gl_shader.h" #include "hwrenderer/postprocessing/hw_postprocess.h" @@ -68,10 +68,6 @@ public: void CompileEffectShaders(); void RenderEffect(const FString &name); - TMap GLTextures; - TMap GLTextureFBs; - TMap> GLShaders; - void BindSceneFB(bool sceneData); void BindSceneColorTexture(int index); void BindSceneFogTexture(int index); @@ -161,7 +157,10 @@ private: PPGLFrameBuffer mShadowMapFB; int mCurrentShadowMapSize = 0; + // Postprocess OpenGL objects + TMap GLTextures; + TMap GLTextureFBs; + TMap> GLShaders; + static bool FailedCreate; }; - -#endif \ No newline at end of file