Final Fix T41222 Blender gives weird ouput when baking (4096*4096) resolution on GPU
[blender-staging.git] / source / blender / render / intern / source / external_engine.c
index 5ac78d1a6bcdca53f54c60c615e08a06e10dd09b..888f1330373482bb3fed0d17da7c7d3bd2cb7f8a 100644 (file)
@@ -454,8 +454,8 @@ bool RE_bake_engine(
        engine->resolution_y = re->winy;
 
        RE_parts_init(re, false);
-       engine->tile_x = re->partx;
-       engine->tile_y = re->party;
+       engine->tile_x = re->r.tilex;
+       engine->tile_y = re->r.tiley;
 
        /* update is only called so we create the engine.session */
        if (type->update)