Explorar o código

Fixed a buffer overrun issue

smetz84 %!s(int64=3) %!d(string=hai) anos
pai
achega
8cb6eba0cf
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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;