浏览代码

Merge pull request #1550 from Azaezel/ResetGFX

new method: ResetGFX();
Anis 9 年之前
父节点
当前提交
7ccac9b9b7
共有 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;
 }
+
+DefineConsoleFunction(ResetGFX, void, (), , "forces the gbuffer to be reinitialized in cases of improper/lack of buffer clears.")
+{
+   GFX->beginReset();
+}