Cycles: border render now works in the viewport, when looking through the

camera, same as in render. It draws objects in solid draw mode outside of
the border.
This commit is contained in:
Brecht Van Lommel
2012-06-06 23:27:43 +00:00
parent 5ebc88266e
commit 78cf502c80
8 changed files with 245 additions and 82 deletions

View File

@@ -311,8 +311,14 @@ void DisplayBuffer::draw_set(int width, int height)
void DisplayBuffer::draw(Device *device)
{
if(draw_width != 0 && draw_height != 0)
if(draw_width != 0 && draw_height != 0) {
glPushMatrix();
glTranslatef(params.full_x, params.full_y, 0.0f);
device->draw_pixels(rgba, 0, draw_width, draw_height, 0, params.width, params.height, transparent);
glPopMatrix();
}
}
bool DisplayBuffer::draw_ready()