diff options
| author | raysan5 <raysan5@gmail.com> | 2015-07-31 12:40:33 +0200 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2015-07-31 12:40:33 +0200 |
| commit | 0af2f4581531db26c153e97a3fe18c373b93926f (patch) | |
| tree | 7424bd6079e95055db702d476c0c6c8c64c1a731 /src | |
| parent | 39e22e98cec397b630c720f851d9cc58b616bc16 (diff) | |
| download | raylib-0af2f4581531db26c153e97a3fe18c373b93926f.tar.gz raylib-0af2f4581531db26c153e97a3fe18c373b93926f.zip | |
SetDefaultShader(): Solved issue
Diffstat (limited to 'src')
| -rw-r--r-- | src/rlgl.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -218,7 +218,6 @@ static bool useTempBuffer = false; // Flags for supported extensions static bool vaoSupported = false; // VAO support (OpenGL ES2 could not support VAO extension) -static bool npotSupported = false; // NPOT textures full support // Compressed textures support flags //static bool texCompDXTSupported = false; // DDS texture compression support @@ -237,6 +236,7 @@ static bool enabledPostpro = false; // Compressed textures support flags static bool texCompDXTSupported = false; // DDS texture compression support +static bool npotSupported = false; // NPOT textures full support #if defined(GRAPHICS_API_OPENGL_ES2) // NOTE: VAO functionality is exposed through extensions (OES) @@ -2236,9 +2236,12 @@ void SetDefaultShader(void) { #if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2) SetCustomShader(defaultShader); - SetPostproShader(defaultShader); - enabledPostpro = false; + if (enabledPostpro) + { + SetPostproShader(defaultShader); + enabledPostpro = false; + } #endif } |
