mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Fix issue where the PostProcessor class would sometimes be reconstructed.
This commit is contained in:
parent
171b8c35fe
commit
9ebbcfc4a3
|
@ -24,6 +24,10 @@
|
||||||
#define FRAGMENT_SHADER_END "\n"
|
#define FRAGMENT_SHADER_END "\n"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef ANDROID
|
||||||
|
PostProcessor PostProcessor::processor;
|
||||||
|
#endif
|
||||||
|
|
||||||
static const char * vertexShader =
|
static const char * vertexShader =
|
||||||
SHADER_VERSION
|
SHADER_VERSION
|
||||||
"#if (__VERSION__ > 120) \n"
|
"#if (__VERSION__ > 120) \n"
|
||||||
|
@ -469,7 +473,9 @@ void PostProcessor::destroy()
|
||||||
|
|
||||||
PostProcessor & PostProcessor::get()
|
PostProcessor & PostProcessor::get()
|
||||||
{
|
{
|
||||||
|
#ifndef ANDROID
|
||||||
static PostProcessor processor;
|
static PostProcessor processor;
|
||||||
|
#endif
|
||||||
return processor;
|
return processor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,7 @@ public:
|
||||||
private:
|
private:
|
||||||
PostProcessor();
|
PostProcessor();
|
||||||
PostProcessor(const PostProcessor & _other);
|
PostProcessor(const PostProcessor & _other);
|
||||||
|
|
||||||
void _initCommon();
|
void _initCommon();
|
||||||
void _destroyCommon();
|
void _destroyCommon();
|
||||||
void _initGammaCorrection();
|
void _initGammaCorrection();
|
||||||
|
@ -43,6 +44,10 @@ private:
|
||||||
CachedTexture * m_pTextureOriginal;
|
CachedTexture * m_pTextureOriginal;
|
||||||
CachedTexture * m_pTextureGlowMap;
|
CachedTexture * m_pTextureGlowMap;
|
||||||
CachedTexture * m_pTextureBlur;
|
CachedTexture * m_pTextureBlur;
|
||||||
|
|
||||||
|
#ifdef ANDROID
|
||||||
|
static PostProcessor processor;
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // POST_PROCESSOR_H
|
#endif // POST_PROCESSOR_H
|
||||||
|
|
Loading…
Reference in New Issue
Block a user