Mercurial > hg > Members > kono > Cerium
diff TaskManager/Test/test_render/task/DrawSpanRenew.cpp @ 186:f7ad032575ed
fix
author | gongo@localhost.localdomain |
---|---|
date | Tue, 06 Jan 2009 16:18:37 +0900 |
parents | bdc08777197e |
children | 06f39635a9b0 |
line wrap: on
line diff
--- a/TaskManager/Test/test_render/task/DrawSpanRenew.cpp Tue Jan 06 15:40:15 2009 +0900 +++ b/TaskManager/Test/test_render/task/DrawSpanRenew.cpp Tue Jan 06 16:18:37 2009 +0900 @@ -114,12 +114,12 @@ */ if (!isAvailableTile(tex_addr)) { spack->info.start = t; - //set_rgb(tex_addr); - set_rgbs(tex_addr, - getTile(span->tex_width-1, tex_ypos, - span->tex_width, span->tex_addr)); - reboot(spack, 0); - goto FINISH; + set_rgb(tex_addr); + //set_rgbs(tex_addr, + //getTile(span->tex_width-1, tex_ypos, + //span->tex_width, span->tex_addr)); + //reboot(spack, 0); + //goto FINISH; } rgb = get_rgb(tex_localx, tex_localy, tex_addr); @@ -161,14 +161,13 @@ tex_localy = tex_ypos % TEXTURE_SPLIT_PIXEL; if (!isAvailableTile(tex_addr)) { - printf("empty\n"); spack->info.start = t; - //set_rgb(tex_addr); - set_rgbs(tex_addr, - getTile(span->tex_width-1, tex_ypos, - span->tex_width, span->tex_addr)); - reboot(spack, j); - goto FINISH; + set_rgb(tex_addr); + //set_rgbs(tex_addr, + //getTile(span->tex_width-1, tex_ypos, + //span->tex_width, span->tex_addr)); + //reboot(spack, j); + //goto FINISH; } rgb = get_rgb(tex_localx, tex_localy, tex_addr); @@ -189,9 +188,12 @@ FINISH: - free(spack); free(next_spack); free(linebuf); + free(zRow); + + // Renew したタスクで allocate されたものなので、これも free + free(spack); return 0; }