diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-09-15 02:26:55 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-09-15 02:26:55 +0400 |
commit | 089abdecf7b14b97c460aa7697fa9191db281d92 (patch) | |
tree | 947c8f46a48eaca4901c1d7ade993f931b0ba39c /intern/cycles/device/device.cpp | |
parent | f97d7b234daaed836172a7caaa5b8d590c7513e5 (diff) |
Cycles: attempted fixes for OS X preview render problem, and disable
kernel cache there now as well since it seems to give issues there.
Diffstat (limited to 'intern/cycles/device/device.cpp')
-rw-r--r-- | intern/cycles/device/device.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/device/device.cpp b/intern/cycles/device/device.cpp index ab57d7cfe86..6ba50154dac 100644 --- a/intern/cycles/device/device.cpp +++ b/intern/cycles/device/device.cpp @@ -108,7 +108,7 @@ void Device::draw_pixels(device_memory& rgba, int y, int w, int h, int width, in /* for multi devices, this assumes the ineffecient method that we allocate all pixels on the device even though we only render to a subset */ - pixels += sizeof(uint8_t)*4*y*w; + pixels += 4*y*w; glDrawPixels(w, h, GL_RGBA, GL_UNSIGNED_BYTE, pixels); |