Skip to content

Commit

Permalink
Fixed #877.
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanedds committed Oct 2, 2024
1 parent a0c46c7 commit c48c0b1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Nu/Nu/Render/Renderer3d.fs
Original file line number Diff line number Diff line change
Expand Up @@ -892,8 +892,8 @@ type [<ReferenceEquality>] GlRenderer3d =
LightsDesiringShadows : Dictionary<uint64, SortableLight>
ForwardSurfacesComparer : IComparer<struct (single * single * Matrix4x4 * Presence * Box2 * MaterialProperties * OpenGL.PhysicallyBased.PhysicallyBasedSurface * single)>
ForwardSurfacesSortBuffer : struct (single * single * Matrix4x4 * Presence * Box2 * MaterialProperties * OpenGL.PhysicallyBased.PhysicallyBasedSurface * single) List
RenderTasksDictionary : Dictionary<RenderPass, RenderTasks>
RenderPackages : Packages<RenderAsset, AssetClient>
RenderTasksDictionary : Dictionary<RenderPass, RenderTasks>
mutable RenderPackageCachedOpt : RenderPackageCached
mutable RenderAssetCached : RenderAssetCached
mutable ReloadAssetsRequested : bool
Expand Down Expand Up @@ -970,6 +970,7 @@ type [<ReferenceEquality>] GlRenderer3d =
v2 (a / single samples) (b / single samples)

static member private invalidateCaches renderer =
renderer.RenderTasksDictionary.Clear ()
renderer.RenderPackageCachedOpt <- Unchecked.defaultof<_>
renderer.RenderAssetCached.CachedAssetTagOpt <- Unchecked.defaultof<_>
renderer.RenderAssetCached.CachedRenderAsset <- RawAsset
Expand Down Expand Up @@ -3612,8 +3613,8 @@ type [<ReferenceEquality>] GlRenderer3d =
LightsDesiringShadows = dictPlus HashIdentity.Structural []
ForwardSurfacesComparer = forwardSurfacesComparer
ForwardSurfacesSortBuffer = List ()
RenderTasksDictionary = renderTasksDictionary
RenderPackages = dictPlus StringComparer.Ordinal []
RenderTasksDictionary = renderTasksDictionary
RenderPackageCachedOpt = Unchecked.defaultof<_>
RenderAssetCached = { CachedAssetTagOpt = Unchecked.defaultof<_>; CachedRenderAsset = Unchecked.defaultof<_> }
ReloadAssetsRequested = false
Expand Down

0 comments on commit c48c0b1

Please sign in to comment.