diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2015-05-11 17:28:41 +0300 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2015-05-11 17:28:41 +0300 |
commit | e38f9144212dc0e7e7f3e6be9b3315435d1669eb (patch) | |
tree | 41532a79c1bdaa484a1cf674625f6a5bce044130 /intern/cycles/device/device.h | |
parent | cc1883468d8537067e0ae6af36075d5cc2d00b68 (diff) |
Cycles: use vertex buffers when possible to draw tiles on the screen.
Not terribly necessary in this case, since we are just drawing a quad,
but makes blender overall more GL 3.x core ready.
Diffstat (limited to 'intern/cycles/device/device.h')
-rw-r--r-- | intern/cycles/device/device.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/intern/cycles/device/device.h b/intern/cycles/device/device.h index 162f51252b0..b32f7b406c7 100644 --- a/intern/cycles/device/device.h +++ b/intern/cycles/device/device.h @@ -119,13 +119,16 @@ struct DeviceDrawParams { class Device { protected: - Device(DeviceInfo& info_, Stats &stats_, bool background) : background(background), info(info_), stats(stats_) {} + Device(DeviceInfo& info_, Stats &stats_, bool background) : background(background), vertex_buffer(0), info(info_), stats(stats_) {} bool background; string error_msg; + /* used for real time display */ + unsigned int vertex_buffer; + public: - virtual ~Device() {} + virtual ~Device(); /* info */ DeviceInfo info; |