mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-18 14:31:50 +00:00
fixed crash when minimized
This commit is contained in:
parent
4481b60b55
commit
fdd817f292
1 changed files with 3 additions and 3 deletions
|
@ -591,7 +591,7 @@ namespace CodeImp.DoomBuilder.Rendering
|
|||
{
|
||||
if(renderlayer != RenderLayers.None) throw new InvalidOperationException("Renderer starting called before finished previous layer. Call Finish() first!");
|
||||
renderlayer = RenderLayers.Plotter;
|
||||
graphics.Device.SetRenderState(RenderState.FogEnable, false);
|
||||
try { graphics.Device.SetRenderState(RenderState.FogEnable, false); } catch(Exception) { }
|
||||
|
||||
// Rendertargets available?
|
||||
if(plottertex != null)
|
||||
|
@ -627,7 +627,7 @@ namespace CodeImp.DoomBuilder.Rendering
|
|||
{
|
||||
if(renderlayer != RenderLayers.None) throw new InvalidOperationException("Renderer starting called before finished previous layer. Call Finish() first!");
|
||||
renderlayer = RenderLayers.Things;
|
||||
graphics.Device.SetRenderState(RenderState.FogEnable, false);
|
||||
try { graphics.Device.SetRenderState(RenderState.FogEnable, false); } catch(Exception) { }
|
||||
|
||||
// Rendertargets available?
|
||||
if(thingstex != null)
|
||||
|
@ -666,7 +666,7 @@ namespace CodeImp.DoomBuilder.Rendering
|
|||
{
|
||||
if(renderlayer != RenderLayers.None) throw new InvalidOperationException("Renderer starting called before finished previous layer. Call Finish() first!");
|
||||
renderlayer = RenderLayers.Overlay;
|
||||
graphics.Device.SetRenderState(RenderState.FogEnable, false);
|
||||
try { graphics.Device.SetRenderState(RenderState.FogEnable, false); } catch(Exception) { }
|
||||
|
||||
// Rendertargets available?
|
||||
if(overlaytex != null)
|
||||
|
|
Loading…
Reference in a new issue