This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 6th, 2010  |  syntax: Diff  |  size: 0.75 KB  |  views: 70  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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;
clone this paste RAW Paste Data