From 596446dbc6beeed4d371242e21cd02ef85c4426b Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 7 Oct 2021 16:54:26 +0200 Subject: Fix wrong Cycles tile highlight with region render In previous Blender version the tile highlight was stored in the full frame (un-cropped) space. This was changed with the Cycles X development and now the tiles and render result are always measured relative to the cropped region. Differential Revision: https://developer.blender.org/D12779 --- source/blender/editors/space_image/image_draw.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'source/blender/editors/space_image') diff --git a/source/blender/editors/space_image/image_draw.c b/source/blender/editors/space_image/image_draw.c index fc04ec1fe02..fb87c54c1db 100644 --- a/source/blender/editors/space_image/image_draw.c +++ b/source/blender/editors/space_image/image_draw.c @@ -112,13 +112,6 @@ static void draw_render_info( GPU_matrix_translate_2f(x, y); GPU_matrix_scale_2f(zoomx, zoomy); - RenderData *rd = RE_engine_get_render_data(re); - if (rd->mode & R_BORDER) { - /* TODO: round or floor instead of casting to int */ - GPU_matrix_translate_2f((int)(-rd->border.xmin * rd->xsch * rd->size * 0.01f), - (int)(-rd->border.ymin * rd->ysch * rd->size * 0.01f)); - } - uint pos = GPU_vertformat_attr_add( immVertexFormat(), "pos", GPU_COMP_F32, 2, GPU_FETCH_FLOAT); immBindBuiltinProgram(GPU_SHADER_2D_UNIFORM_COLOR); -- cgit v1.2.3