Explorar el Código

Fixed a buffer overrun issue

smetz84 hace 3 años
padre
commit
8cb6eba0cf
Se han modificado 1 ficheros con 2 adiciones y 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;