Advertisement
Guest User

Untitled

a guest
Sep 6th, 2010
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.75 KB | None | 0 0
  1. --- vec.h.orig  2010-09-06 17:22:21.692873141 +0200
  2. +++ vec.h   2010-09-06 17:23:08.592872987 +0200
  3. @@ -55,12 +55,7 @@
  4.  // Rendering flags
  5.  #define RFLAGS_DISABLE_DIFFUSE_PATH 1
  6.  
  7. -// NOTE: workaround for an Apple OpenCL compiler bug
  8. -#ifdef __APPLE__
  9. -#define OCL_CONSTANT_BUFFER __global
  10. -#else
  11.  #define OCL_CONSTANT_BUFFER __constant
  12. -#endif
  13.  
  14.  #endif /* _VEC_H */
  15.  
  16. --- geomfunc.h.orig 2010-09-06 17:23:49.224121784 +0200
  17. +++ geomfunc.h  2010-09-06 17:24:38.442871883 +0200
  18. @@ -79,8 +79,7 @@
  19.     unsigned int *id) {
  20.     float inf = (*t) = 1e20f;
  21.  
  22. -   unsigned int i = sphereCount;
  23. -   for (; i--;) {
  24. +   for (unsigned int i = 0; i < sphereCount; i++) {
  25.         const float d = SphereIntersect(&spheres[i], r);
  26.         if ((d != 0.f) && (d < *t)) {
  27.             *t = d;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement