From cc618ce2e092f139aef6bee1fd5f50b999a204eb Mon Sep 17 00:00:00 2001 From: Azaezel Date: Tue, 15 Mar 2016 18:04:11 -0500 Subject: [PATCH] new method: ResetGFX(); exposes the GFX->beginReset(); method to script to allow folks to force the gbuffer to reinitialize (if, say a custom element is holding on to data in a buffer and it needs a cleaning, to name one example) --- Engine/source/gfx/gfxDevice.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Engine/source/gfx/gfxDevice.cpp b/Engine/source/gfx/gfxDevice.cpp index 3f63fb884..24cde0bcf 100644 --- a/Engine/source/gfx/gfxDevice.cpp +++ b/Engine/source/gfx/gfxDevice.cpp @@ -1329,3 +1329,8 @@ DefineEngineFunction( getBestHDRFormat, GFXFormat, (),, return format; } + +DefineConsoleFunction(ResetGFX, void, (), , "") +{ + GFX->beginReset(); +} \ No newline at end of file