瀏覽代碼

Fixed a buffer overrun issue

smetz84 3 年之前
父節點
當前提交
8cb6eba0cf
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Source/GLS.Scene.pas

+ 2 - 0
Source/GLS.Scene.pas

@@ -6299,6 +6299,8 @@ begin
           CreateContext(AWindowHandle);
       except
         FreeAndNil(FRenderingContext);
+        if Assigned(FCamera) and Assigned(FCamera.FScene) then
+          FCamera.FScene.RemoveBuffer(Self);
         raise;
       end;
     end;