From 1b16a5102187c98b0c7684f4e25871dfce914e03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Mon, 25 May 2015 17:41:55 +0200 Subject: [PATCH] fix a dereference of an explicit null value --- OpenRA.Game/Graphics/VoxelRenderer.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenRA.Game/Graphics/VoxelRenderer.cs b/OpenRA.Game/Graphics/VoxelRenderer.cs index 8280effec9..1f66be1fea 100644 --- a/OpenRA.Game/Graphics/VoxelRenderer.cs +++ b/OpenRA.Game/Graphics/VoxelRenderer.cs @@ -315,7 +315,8 @@ namespace OpenRA.Graphics v.Second(); } - DisableFrameBuffer(fbo); + if (fbo != null) + DisableFrameBuffer(fbo); } public Sheet AllocateSheet()