Skip to content

Commit

Permalink
SpoutReceiver FFGL update
Browse files Browse the repository at this point in the history
Close receiver on receivetexture fail
#25
Version 3.031
  • Loading branch information
leadedge committed Oct 31, 2017
1 parent df10136 commit 8143d71
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
Binary file modified FFGL/Binaries/SpoutReceiver2.dll
Binary file not shown.
4 changes: 3 additions & 1 deletion FFGL/Binaries/readme.txt
Expand Up @@ -20,7 +20,9 @@ Refer to the Spout pdf manual for more details. For other applications refer to
==========================
Update since 2.006 release
16.04.17 - rebuild with VS2012 with original IDs for Isadora

31.10.17 - Close receiver on receivetexture fail
https://github.com/leadedge/Spout2/issues/25
Version 3.031



Expand Down
13 changes: 10 additions & 3 deletions FFGL/Source/SpoutReceiver/SpoutReceiverSDK3.cpp
Expand Up @@ -105,7 +105,9 @@
16.04.17 - Change ID back to LJ48 due to problems with Isadora
Update version number to 3.030 in PluginInfo
Rebuild VS2012 /MD
31.10.17 - close receiver on receivetexture fail
https://github.com/leadedge/Spout2/issues/25
Version 3.031
*/
#include "SpoutReceiverSDK3.h"
Expand All @@ -128,9 +130,9 @@ static CFFGLPluginInfo PluginInfo (
1, // API major version number
5, // API minor version number
3, // Plugin major version number
30, // Plugin minor version number
31, // Plugin minor version number
FF_SOURCE, // Plugin type
"Spout Receiver - Vers 3.030\nReceives textures from Spout Senders\n\nSender Name : enter a sender name\nUpdate : update the name entry\nSelect : select a sender using 'SpoutPanel'\nAspect : preserve aspect ratio of the received sender", // Plugin description
"Spout Receiver - Vers 3.031\nReceives textures from Spout Senders\n\nSender Name : enter a sender name\nUpdate : update the name entry\nSelect : select a sender using 'SpoutPanel'\nAspect : preserve aspect ratio of the received sender", // Plugin description
"S P O U T - Version 2.006\nspout.zeal.co" // About
);

Expand Down Expand Up @@ -296,6 +298,11 @@ DWORD SpoutReceiverSDK3::ProcessOpenGL(ProcessOpenGLStruct *pGL)
// All matches so draw the shared texture
DrawReceivedTexture(myTexture, GL_TEXTURE_2D, g_Width, g_Height);
}
else {
// The sender has closed
receiver.ReleaseReceiver();
bInitialized = false;
}
}

return FF_SUCCESS;
Expand Down

0 comments on commit 8143d71

Please sign in to comment.