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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2011-05-03 22:29:11 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2011-05-03 22:29:11 +0400
commit2996f08f845c4b67b0231d5832668da5ddb2d227 (patch)
tree419f3dbd78a19398883a405606f7a7de83084d90 /intern/cycles/device
parent170f8c8c4109afb366bac0f385d9e2f59af6c8e2 (diff)
Cycles: first batch of windows build fixes, not quite there yet.
Diffstat (limited to 'intern/cycles/device')
-rw-r--r--intern/cycles/device/CMakeLists.txt2
-rw-r--r--intern/cycles/device/device_cuda.cpp23
2 files changed, 14 insertions, 11 deletions
diff --git a/intern/cycles/device/CMakeLists.txt b/intern/cycles/device/CMakeLists.txt
index 0885cd6fc20..712351b9558 100644
--- a/intern/cycles/device/CMakeLists.txt
+++ b/intern/cycles/device/CMakeLists.txt
@@ -7,7 +7,7 @@ INCLUDE_DIRECTORIES(
../util
../render
${OPENGL_INCLUDE_DIR}
- ${GLEW_INCLUDE_DIR})
+ ${GLEW_INCLUDE_PATH})
SET(sources
device.cpp
diff --git a/intern/cycles/device/device_cuda.cpp b/intern/cycles/device/device_cuda.cpp
index 76692ba8657..0537e231f44 100644
--- a/intern/cycles/device/device_cuda.cpp
+++ b/intern/cycles/device/device_cuda.cpp
@@ -356,7 +356,8 @@ public:
cuda_assert(cuParamSetv(cuPathTrace, offset, &d_rng_state, sizeof(d_rng_state)))
offset += sizeof(d_rng_state);
- offset = cuda_align_up(offset, __alignof(task.pass));
+ int pass = task.pass;
+ offset = cuda_align_up(offset, __alignof(pass));
cuda_assert(cuParamSeti(cuPathTrace, offset, task.pass))
offset += sizeof(task.pass);
@@ -413,7 +414,8 @@ public:
cuda_assert(cuParamSetv(cuFilmConvert, offset, &d_buffer, sizeof(d_buffer)))
offset += sizeof(d_buffer);
- offset = cuda_align_up(offset, __alignof(task.pass));
+ int pass = task.pass;
+ offset = cuda_align_up(offset, __alignof(pass));
cuda_assert(cuParamSeti(cuFilmConvert, offset, task.pass))
offset += sizeof(task.pass);
@@ -475,7 +477,8 @@ public:
cuda_assert(cuParamSetv(cuDisplace, offset, &d_offset, sizeof(d_offset)))
offset += sizeof(d_offset);
- offset = cuda_align_up(offset, __alignof(task.displace_x));
+ int displace_x = task.displace_x;
+ offset = cuda_align_up(offset, __alignof(displace_x));
cuda_assert(cuParamSeti(cuDisplace, offset, task.displace_x))
offset += sizeof(task.displace_x);
@@ -621,18 +624,18 @@ public:
glColor3f(1.0f, 1.0f, 1.0f);
glPushMatrix();
- glTranslatef(0, y, 0.0f);
+ glTranslatef(0.0f, (float)y, 0.0f);
glBegin(GL_QUADS);
- glTexCoord2f(0, 0);
- glVertex2f(0, 0);
+ glTexCoord2f(0.0f, 0.0f);
+ glVertex2f(0.0f, 0.0f);
glTexCoord2f((float)w/(float)width, 0);
- glVertex2f(width, 0);
+ glVertex2f((float)width, 0.0f);
glTexCoord2f((float)w/(float)width, (float)h/(float)height);
- glVertex2f(width, height);
- glTexCoord2f(0, (float)h/(float)height);
- glVertex2f(0, height);
+ glVertex2f((float)width, (float)height);
+ glTexCoord2f(0.0f, (float)h/(float)height);
+ glVertex2f(0.0f, (float)height);
glEnd();