Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2015-05-11 17:28:41 +0300
committerAntony Riakiotakis <kalast@gmail.com>2015-05-11 17:28:41 +0300
commite38f9144212dc0e7e7f3e6be9b3315435d1669eb (patch)
tree41532a79c1bdaa484a1cf674625f6a5bce044130 /intern/cycles/device/device.h
parentcc1883468d8537067e0ae6af36075d5cc2d00b68 (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.h7
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;