Added SamplerState for white texture

This commit is contained in:
Simon Lübeß
2021-09-19 13:33:48 +02:00
parent 38fd5fa2c8
commit 8471b7d7b9
+6
View File
@@ -124,6 +124,12 @@ namespace GlitchyEngine.Renderer
Color color = .White; Color color = .White;
whiteTexture.SetData(&color); whiteTexture.SetData(&color);
SamplerState sampler = SamplerStateManager.GetSampler(SamplerStateDescription());
whiteTexture.SamplerState = sampler;
sampler..ReleaseRef();
} }
void InitInstancing(EffectLibrary effectLibrary) void InitInstancing(EffectLibrary effectLibrary)