Skip to content

Commit

Permalink
Fix SpoutGL.cpp for VC2022 C++20
Browse files Browse the repository at this point in the history
  • Loading branch information
lesha198a committed Jan 21, 2022
1 parent 580acc8 commit d7ef336
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions SPOUTSDK/SpoutGL/SpoutGL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d7ef336

Please sign in to comment.