[Bf-blender-cvs] [d36f57c] decklink: BGE: ImageViewport no texture to load when used with DeckLink.

Benoit Bolsee noreply at git.blender.org
Mon Apr 6 16:51:07 CEST 2015


Commit: d36f57c6ea752cee028cfc8e0cc3f142f6e3831f
Author: Benoit Bolsee
Date:   Mon Apr 6 16:49:36 2015 +0200
Branches: decklink
https://developer.blender.org/rBd36f57c6ea752cee028cfc8e0cc3f142f6e3831f

BGE: ImageViewport no texture to load when used with DeckLink.

===================================================================

M	source/gameengine/VideoTexture/ImageViewport.cpp

===================================================================

diff --git a/source/gameengine/VideoTexture/ImageViewport.cpp b/source/gameengine/VideoTexture/ImageViewport.cpp
index 421f0df..ab710f6 100644
--- a/source/gameengine/VideoTexture/ImageViewport.cpp
+++ b/source/gameengine/VideoTexture/ImageViewport.cpp
@@ -133,7 +133,7 @@ void ImageViewport::calcImage (unsigned int texId, double ts)
 		// reset image
 		init(m_capSize[0], m_capSize[1]);
 	// if texture wasn't initialized
-	if (!m_texInit) {
+	if (!m_texInit && texId != 0) {
 		// initialize it
 		loadTexture(texId, m_image, m_size);
 		m_texInit = true;




More information about the Bf-blender-cvs mailing list