1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-10-05 05:42:18 +00:00

Fixed a shader related crash that occured if the following conditions were met:

- BBGE_BUILD_SHADERS defined
- Blur enabled in config
- Entering a "warplocalnode"-Node while taking damage

These conditions caused it to enable shader related code while taking the
screenshot for the warp transition, that caused a crash because the shader-
related gl*() function pointers were not initialzed, because the current
code never loads any shaders.
This commit is contained in:
fgenesis 2012-02-05 20:26:23 +01:00
commit 99375127e1
2 changed files with 113 additions and 81 deletions

View file

@ -47,4 +47,8 @@ protected:
int mode;
float vx, vy, vz, vw;
bool loaded;
static void staticInit();
static bool _wasInited;
static bool _useShaders;
};