Cycles: clang build fixes.

This commit is contained in:
Brecht Van Lommel
2011-08-10 19:45:08 +00:00
parent b98ccf6998
commit 18d709022e
5 changed files with 5 additions and 1 deletions

View File

@@ -83,6 +83,7 @@ public:
vector<Object*> objects;
static BVH *create(const BVHParams& params, const vector<Object*>& objects);
virtual ~BVH() {}
void build(Progress& progress);
void refit(Progress& progress);

View File

@@ -42,6 +42,7 @@ public:
{
}
virtual ~BVHNode() {}
virtual bool is_leaf() const = 0;
virtual int num_children() const = 0;
virtual BVHNode *get_child(int i) const = 0;

View File

@@ -244,7 +244,7 @@ public:
mem.device_pointer = tmp;
}
void draw_pixels(device_memory& rgba, int x, int y, int w, int h, int width, int height)
void draw_pixels(device_memory& rgba, int y, int w, int h, int width, int height)
{
device_ptr tmp = rgba.device_pointer;
int i = 0, sub_h = h/devices.size();

View File

@@ -30,6 +30,7 @@ class Mesh;
class Patch {
public:
virtual ~Patch() {}
virtual void eval(float3 *P, float3 *dPdu, float3 *dPdv, float u, float v) = 0;
virtual bool is_triangle() = 0;
virtual BoundBox bound() = 0;

View File

@@ -21,6 +21,7 @@
/* Vector */
#include <string.h>
#include <vector>
CCL_NAMESPACE_BEGIN