mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Engine barely starts again
This commit is contained in:
@@ -566,23 +566,23 @@ class TexturererViewerer
|
||||
// Int Texture
|
||||
_renderTargetEffect.Variables["Mode"].SetData(1);
|
||||
_renderTargetEffect.SetTexture("IntTexture", viewedTexture);
|
||||
_renderTargetEffect.SetTexture("UIntTexture", null);
|
||||
_renderTargetEffect.SetTexture("Texture", null);
|
||||
_renderTargetEffect.SetTexture("UIntTexture", (Texture)null);
|
||||
_renderTargetEffect.SetTexture("Texture", (Texture)null);
|
||||
}
|
||||
else if (format.IsUInt())
|
||||
{
|
||||
// UInt Texture
|
||||
_renderTargetEffect.Variables["Mode"].SetData(2);
|
||||
_renderTargetEffect.SetTexture("IntTexture", null);
|
||||
_renderTargetEffect.SetTexture("IntTexture", (Texture)null);
|
||||
_renderTargetEffect.SetTexture("UIntTexture", viewedTexture);
|
||||
_renderTargetEffect.SetTexture("Texture", null);
|
||||
_renderTargetEffect.SetTexture("Texture", (Texture)null);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Float Texture
|
||||
_renderTargetEffect.Variables["Mode"].SetData(0);
|
||||
_renderTargetEffect.SetTexture("IntTexture", null);
|
||||
_renderTargetEffect.SetTexture("UIntTexture", null);
|
||||
_renderTargetEffect.SetTexture("IntTexture", (Texture)null);
|
||||
_renderTargetEffect.SetTexture("UIntTexture", (Texture)null);
|
||||
_renderTargetEffect.SetTexture("Texture", viewedTexture);
|
||||
}
|
||||
|
||||
|
||||
@@ -971,7 +971,10 @@ class EditorContentManager : IContentManager
|
||||
TreeNode<AssetNode> assetNode = TrySilent!(AssetHierarchy.GetNodeFromAssetHandle(handle));
|
||||
|
||||
_assetConverter.QueueForProcessing(assetNode->AssetFile, isBlocking);
|
||||
|
||||
|
||||
var isBlocking;
|
||||
isBlocking = true;
|
||||
|
||||
if (isBlocking)
|
||||
{
|
||||
asset = _assetCache.GetCacheEntry(handle);
|
||||
@@ -1017,6 +1020,10 @@ class EditorContentManager : IContentManager
|
||||
return placeholder;
|
||||
}
|
||||
|
||||
var isBlocking;
|
||||
|
||||
isBlocking = true;
|
||||
|
||||
if (isBlocking)
|
||||
return InternalLoad(asset);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user