]> git.sesse.net Git - casparcg/commitdiff
2.0. Added links to ogl specs.
authorRonag <Ronag@362d55ac-95cf-4e76-9f9a-cbaa9c17b72d>
Sun, 14 Aug 2011 20:32:06 +0000 (20:32 +0000)
committerRonag <Ronag@362d55ac-95cf-4e76-9f9a-cbaa9c17b72d>
Sun, 14 Aug 2011 20:32:06 +0000 (20:32 +0000)
git-svn-id: https://casparcg.svn.sourceforge.net/svnroot/casparcg/server/branches/2.0.0.2@1175 362d55ac-95cf-4e76-9f9a-cbaa9c17b72d

core/mixer/gpu/fence.h
core/mixer/image/image_kernel.cpp

index 5a142160d4123518fa1b151d0f6810542d664d1e..3584e900c2dfacb1f5ded8dbc3d5007edb7f4a62 100644 (file)
@@ -6,6 +6,9 @@ namespace caspar { namespace core {
        \r
 class ogl_device;\r
 \r
+// Used to avoid blocking ogl thread for async operations. \r
+// This is imported when several objects use the same ogl context.\r
+// Based on http://www.opengl.org/registry/specs/ARB/sync.txt.\r
 class fence\r
 {\r
 public:\r
index 32e8a012524cfc34582da206e7d1f7954628b859..9b02af29f9ed0c245c9a67f3a38e76c9021577b7 100644 (file)
@@ -208,7 +208,11 @@ struct image_kernel::implementation : boost::noncopyable
                ogl.yield(); // Return resources to pool as early as possible.\r
 \r
                if(!blend_modes_)\r
-                       glTextureBarrierNV(); // This allows us to use framebuffer (background) both as source and target while blending.\r
+               {\r
+                       // http://www.opengl.org/registry/specs/NV/texture_barrier.txt\r
+                       // This allows us to use framebuffer (background) both as source and target while blending.\r
+                       glTextureBarrierNV(); \r
+               }\r
        }\r
 };\r
 \r