patch-src_celengine_image_cpp 603 B

123456789101112131415161718192021
  1. $OpenBSD: patch-src_celengine_image_cpp,v 1.3 2012/12/22 18:35:24 jasper Exp $
  2. mips platforms already have 'mips' defined, resulting in:
  3. error: expected ',' or '...' before numeric constant
  4. --- src/celengine/image.cpp.orig Sat Dec 22 18:02:55 2012
  5. +++ src/celengine/image.cpp Sat Dec 22 18:03:05 2012
  6. @@ -143,10 +143,10 @@ static int calcMipLevelSize(int fmt, int w, int h, int
  7. }
  8. -Image::Image(int fmt, int w, int h, int mips) :
  9. +Image::Image(int fmt, int w, int h, int mipsen) :
  10. width(w),
  11. height(h),
  12. - mipLevels(mips),
  13. + mipLevels(mipsen),
  14. format(fmt),
  15. pixels(NULL)
  16. {