diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2015-05-11 17:40:38 +0300 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2015-05-11 17:41:18 +0300 |
commit | 4fc31881127786f244bc67ad45b3787c6d7917a2 (patch) | |
tree | 7577345458bd5ec6fedaf0050c915ec1ed5125b0 /intern/cycles/render/buffers.cpp | |
parent | d30f664c0438e8378c79d5beb114b1338d0e1d94 (diff) |
Cycles: Get rid of one more OpenGL matrix manipulation/push/pop.
Diffstat (limited to 'intern/cycles/render/buffers.cpp')
-rw-r--r-- | intern/cycles/render/buffers.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/intern/cycles/render/buffers.cpp b/intern/cycles/render/buffers.cpp index dc00da1bf88..011c722c000 100644 --- a/intern/cycles/render/buffers.cpp +++ b/intern/cycles/render/buffers.cpp @@ -369,13 +369,9 @@ void DisplayBuffer::draw_set(int width, int height) void DisplayBuffer::draw(Device *device, const DeviceDrawParams& draw_params) { if(draw_width != 0 && draw_height != 0) { - glPushMatrix(); - glTranslatef(params.full_x, params.full_y, 0.0f); device_memory& rgba = rgba_data(); - device->draw_pixels(rgba, 0, draw_width, draw_height, 0, params.width, params.height, transparent, draw_params); - - glPopMatrix(); + device->draw_pixels(rgba, 0, draw_width, draw_height, params.full_x, params.full_y, params.width, params.height, transparent, draw_params); } } |