git-svn-id: https://casparcg.svn.sourceforge.net/svnroot/casparcg/server/branches/2.0.0.2@1175
362d55ac-95cf-4e76-9f9a-
cbaa9c17b72d
\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
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