Fix some bugs
*UNTESTED*
This commit is contained in:
parent
12bd48d741
commit
c45e2e1afc
2
external/libglez
vendored
2
external/libglez
vendored
@ -1 +1 @@
|
|||||||
Subproject commit dd0158bcb389a5687c16ae8075574db5b7dd1954
|
Subproject commit ac817c1c55b61387df289773fb3761fee8f462c0
|
@ -20,7 +20,7 @@ class EffectChams : public IScreenSpaceEffect
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
virtual void Init();
|
virtual void Init();
|
||||||
inline virtual void Shutdown()
|
virtual void Shutdown()
|
||||||
{
|
{
|
||||||
if (init)
|
if (init)
|
||||||
{
|
{
|
||||||
@ -29,6 +29,7 @@ public:
|
|||||||
mat_lit.Shutdown();
|
mat_lit.Shutdown();
|
||||||
mat_lit_z.Shutdown();
|
mat_lit_z.Shutdown();
|
||||||
for (auto kv : chams_keyvalues)
|
for (auto kv : chams_keyvalues)
|
||||||
|
if (kv)
|
||||||
kv->deleteThis();
|
kv->deleteThis();
|
||||||
init = false;
|
init = false;
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ class EffectGlow : public IScreenSpaceEffect
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
virtual void Init();
|
virtual void Init();
|
||||||
inline virtual void Shutdown()
|
virtual void Shutdown()
|
||||||
{
|
{
|
||||||
if (init)
|
if (init)
|
||||||
{
|
{
|
||||||
@ -31,7 +31,9 @@ public:
|
|||||||
mat_blur_x.Shutdown();
|
mat_blur_x.Shutdown();
|
||||||
mat_blur_y.Shutdown();
|
mat_blur_y.Shutdown();
|
||||||
for (auto kv : glow_keyvalues)
|
for (auto kv : glow_keyvalues)
|
||||||
|
if (kv)
|
||||||
kv->deleteThis();
|
kv->deleteThis();
|
||||||
|
init = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -307,7 +307,6 @@ free(logname);*/
|
|||||||
{
|
{
|
||||||
effect_chams::g_pEffectChams = new CScreenSpaceEffectRegistration("_cathook_chams", &effect_chams::g_EffectChams);
|
effect_chams::g_pEffectChams = new CScreenSpaceEffectRegistration("_cathook_chams", &effect_chams::g_EffectChams);
|
||||||
g_pScreenSpaceEffects->EnableScreenSpaceEffect("_cathook_chams");
|
g_pScreenSpaceEffects->EnableScreenSpaceEffect("_cathook_chams");
|
||||||
effect_chams::g_EffectChams.Init();
|
|
||||||
effect_glow::g_pEffectGlow = new CScreenSpaceEffectRegistration("_cathook_glow", &effect_glow::g_EffectGlow);
|
effect_glow::g_pEffectGlow = new CScreenSpaceEffectRegistration("_cathook_glow", &effect_glow::g_EffectGlow);
|
||||||
g_pScreenSpaceEffects->EnableScreenSpaceEffect("_cathook_glow");
|
g_pScreenSpaceEffects->EnableScreenSpaceEffect("_cathook_glow");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user