Paint.cpp: don't render VGUI with null graphics
This commit is contained in:
parent
85a4502720
commit
66a96af07f
@ -20,7 +20,11 @@ DEFINE_HOOKED_METHOD(Paint, void, IEngineVGui *this_, PaintMode_t mode)
|
||||
{
|
||||
if (!isHackActive())
|
||||
{
|
||||
#if !ENABLE_NULL_GRAPHICS
|
||||
return original::Paint(this_, mode);
|
||||
#else
|
||||
return;
|
||||
#endif
|
||||
}
|
||||
|
||||
if (!g_IEngine->IsInGame())
|
||||
@ -89,7 +93,8 @@ DEFINE_HOOKED_METHOD(Paint, void, IEngineVGui *this_, PaintMode_t mode)
|
||||
// Call all paint functions
|
||||
EC::run(EC::Paint);
|
||||
}
|
||||
|
||||
#if !ENABLE_NULL_GRAPHICS
|
||||
return original::Paint(this_, mode);
|
||||
#endif
|
||||
}
|
||||
} // namespace hooked_methods
|
||||
|
Reference in New Issue
Block a user