]> git.sesse.net Git - casparcg/commitdiff
git-svn-id: https://casparcg.svn.sourceforge.net/svnroot/casparcg/server/branches...
authorronag <ronag@362d55ac-95cf-4e76-9f9a-cbaa9c17b72d>
Wed, 4 Apr 2012 09:42:02 +0000 (09:42 +0000)
committerronag <ronag@362d55ac-95cf-4e76-9f9a-cbaa9c17b72d>
Wed, 4 Apr 2012 09:42:02 +0000 (09:42 +0000)
accelerator/ogl/util/device.cpp
accelerator/ogl/util/device.h

index f1a010b4bee78ff8cef145351c78e04ca4bb3a01..490ab6629a2239679bc7fc31db70de9a7b6fd88c 100644 (file)
@@ -227,7 +227,7 @@ struct device::impl : public std::enable_shared_from_this<impl>
                return buf;\r
        }\r
 \r
-       // TODO: Since the returned texture is cached it CANNOT be modified.\r
+       // TODO: Since the returned texture is cached it SHOULD NOT be modified.\r
        boost::unique_future<spl::shared_ptr<texture>> copy_async(const array<const std::uint8_t>& source, int width, int height, int stride)\r
        {\r
                std::shared_ptr<buffer> buf = copy_to_buf(source);\r
index 82193738d98a8f91dd0753e279119476a6f07750..2e84080366fe7a78c44d3216fedcb26a759f089a 100644 (file)
@@ -49,8 +49,10 @@ public:
                        \r
        spl::shared_ptr<texture> create_texture(int width, int height, int stride);\r
        array<std::uint8_t>              create_array(int size);\r
-\r
+               \r
+       // NOTE: Since the returned texture is cached it SHOULD NOT be modified.\r
        boost::unique_future<spl::shared_ptr<texture>>  copy_async(const array<const std::uint8_t>& source, int width, int height, int stride);\r
+\r
        boost::unique_future<spl::shared_ptr<texture>>  copy_async(const array<std::uint8_t>& source, int width, int height, int stride);\r
        boost::unique_future<array<const std::uint8_t>> copy_async(const spl::shared_ptr<texture>& source);\r
                        \r