浏览代码

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)

Azaezel 9 年之前
父节点
当前提交
cc618ce2e0
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      Engine/source/gfx/gfxDevice.cpp

+ 5 - 0
Engine/source/gfx/gfxDevice.cpp

@@ -1329,3 +1329,8 @@ DefineEngineFunction( getBestHDRFormat, GFXFormat, (),,
 
 
    return format;
    return format;
 }
 }
+
+DefineConsoleFunction(ResetGFX, void, (), , "")
+{
+   GFX->beginReset();
+}