Commit: 2a41ec616f88e25849f67c32156b3f98b6cdc61f
Author: Benoit Bolsee
Date: Wed Apr 22 16:36:44 2015 +0200
Branches: decklink
https://developer.blender.org/rB2a41ec616f88e25849f67c32156b3f98b6cdc61f
BGE VideoDeckLink: Minor cleanup in Windows implementation.
===================================================================
M source/gameengine/VideoTexture/VideoDeckLink.cpp
===================================================================
diff --git a/source/gameengine/VideoTexture/VideoDeckLink.cpp
b/source/gameengine/VideoTexture/VideoDeckLink.cpp
index a8cd69a..57948fa 100644
--- a/source/gameengine/VideoTexture/VideoDeckLink.cpp
+++ b/source/gameengine/VideoTexture/VideoDeckLink.cpp
@@ -111,7 +111,6 @@ public:
TextureTransferDvp(DVPBufferHandle dvpTextureHandle, TextureDesc
*pDesc, void *address, u_int allocatedSize)
{
DVPSysmemBufferDesc sysMemBuffersDesc;
- DVPStatus status;
mExtSync = NULL;
mGpuSync = NULL;
@@ -401,6 +400,7 @@ void PinnedMemoryAllocator::TransferBuffer(void* address,
TextureDesc* texDesc,
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S,
GL_CLAMP);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T,
GL_CLAMP);
glTexImage2D(GL_TEXTURE_2D, 0, ((texDesc->format ==
GL_RED_INTEGER) ? GL_R32UI : GL_RGBA), texDesc->width, texDesc->height, 0,
texDesc->format, texDesc->type, NULL);
+ glBindTexture(GL_TEXTURE_2D, 0);
// bind DVP to the OGL texture
DVP_CHECK(dvpCreateGPUTextureGL(texId,
&mDvpCaptureTextureHandle));
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs