From 5f6bd2ea61877db0837efa40804be49732dd7582 Mon Sep 17 00:00:00 2001 From: Oleksii Kalnytskyi Date: Fri, 21 Jan 2022 15:04:43 +0200 Subject: [PATCH] Fix SpoutGL.cpp for VS2022 C++20 --- SPOUTSDK/SpoutGL/SpoutGL.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/SPOUTSDK/SpoutGL/SpoutGL.cpp b/SPOUTSDK/SpoutGL/SpoutGL.cpp index 48505d66..3387b541 100644 --- a/SPOUTSDK/SpoutGL/SpoutGL.cpp +++ b/SPOUTSDK/SpoutGL/SpoutGL.cpp @@ -390,9 +390,8 @@ bool spoutGL::OpenSpout(bool bRetest) { // Return if already initialized and not re-testing compatibility // Look for DirectX device to prevent repeat - if(spoutdx.GetDX11Device() > 0 - && m_hInteropDevice > 0 - && !bRetest) + if(spoutdx.GetDX11Device() != nullptr && m_hInteropDevice != nullptr + && !bRetest) return true; printf("\n"); // This is the start, so make a new line in the log