From dbdc740dbd3456ef52a75e98fd696a7c092e961a Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 16 Jan 2009 21:05:56 +0000 Subject: [PATCH] yield during mipmap generation --- panda/src/gobj/texture.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/panda/src/gobj/texture.cxx b/panda/src/gobj/texture.cxx index e2512fb22c..5bd6088702 100644 --- a/panda/src/gobj/texture.cxx +++ b/panda/src/gobj/texture.cxx @@ -5076,6 +5076,7 @@ filter_2d_mipmap_pages(Texture::RamImage &to, const Texture::RamImage &from, } } q += row_size; + Thread::consider_yield(); } if (y < y_size) { // Skip the last odd row. @@ -5178,6 +5179,7 @@ filter_3d_mipmap_level(Texture::RamImage &to, const Texture::RamImage &from, } } q += row_size; + Thread::consider_yield(); } if (y < y_size) { // Skip the last odd row. @@ -5243,6 +5245,7 @@ filter_3d_mipmap_level(Texture::RamImage &to, const Texture::RamImage &from, } } q += row_size; + Thread::consider_yield(); } if (y < y_size) { // Skip the last odd row.