lixqopensorce / softart

Automatically exported from code.google.com/p/softart
Other
0 stars 0 forks source link

纹理采样多线程不安全 #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
当使用tex2d函数时,会导致光栅化在多线程当机。发现 
rasterizer::rasterize_triangle_impl中有如下代码
    // TODO: This is not thread safe
    hps_->ptriangleinfo_ = &info;

Original issue reported on code.google.com by mybio...@gmail.com on 13 Mar 2010 at 2:18

GoogleCodeExporter commented 9 years ago
已改成每个线程一个pixel_shader,修复此bug

Original comment by mybio...@gmail.com on 14 Mar 2010 at 4:56

GoogleCodeExporter commented 9 years ago

Original comment by wuye9036 on 15 Dec 2011 at 3:29

GoogleCodeExporter commented 9 years ago

Original comment by wuye9036 on 7 Mar 2012 at 2:58

GoogleCodeExporter commented 9 years ago

Original comment by wuye9036 on 7 Mar 2012 at 3:01