Cycles support for preview on viewport with core profile

This upgrade the drawing code to use latest opengl calls.
Also, it adds a fallback shader for opencolorio.

Reviewers: sergey, brecht
Subscribers: merwin, fclem

Differential Revision: https://developer.blender.org/D2652
This commit is contained in:
Dalai Felinto
2017-04-28 19:25:57 +02:00
parent ba4f47ce8e
commit b868f43fd3
5 changed files with 323 additions and 134 deletions

View File

@@ -371,7 +371,11 @@ void DisplayBuffer::draw(Device *device, const DeviceDrawParams& draw_params)
if(draw_width != 0 && draw_height != 0) {
device_memory& rgba = rgba_data();
device->draw_pixels(rgba, 0, draw_width, draw_height, params.full_x, params.full_y, params.width, params.height, transparent, draw_params);
device->draw_pixels(
rgba, 0,
draw_width, draw_height, params.width, params.height,
params.full_x, params.full_y, params.full_width, params.full_height,
transparent, draw_params);
}
}