← Back to team overview

hugin-devs team mailing list archive

[Bug 685934] Re: enblend GPU on OS X without superfluous window

 

I don't think this fix has been released.   I'm trying to build the
mercurial version and getting the error:


[ 50%] Building CXX object src/CMakeFiles/enblend.dir/gpu.o
/usr/local/src/enblend-hg/enblend/src/gpu.cc: In function '_CGLContextObject* cgl_init()':
/usr/local/src/enblend-hg/enblend/src/gpu.cc:166: error: cannot convert 'long int*' to 'GLint*' for argument '3' to 'CGLError CGLChoosePixelFormat(const CGLPixelFormatAttribute*, _CGLPixelFormatObject**, GLint*)'

-- 
You received this bug notification because you are a member of Hugin
Developers, which is subscribed to Enblend.
https://bugs.launchpad.net/bugs/685934

Title:
  enblend GPU on OS X without superfluous window

Status in Enblend:
  Fix Released

Bug description:
  I was using enblend for a batch processing script under Mac OS 10.6,
  with GPU support enabled. This made my computer difficult to use
  because a window would be opened from enblend and steal my focus every
  time it ran. This was evidently a side-effect of using GLUT for OpenGL
  context initialization which assumes a window-based context on Mac OS
  X. By replacing this with a CGL PBuffer context no window is spawned
  and the flashing icon on the dock is also eliminated.

  I have attached a patch against the 4.0 source download that replaces
  the GLUT initialization code with Mac OS X-specific CGL
  initialization. The changes are contained within #ifdef
  HAVE_APPLE_OPENGL_FRAMEWORK so it will not affect building on other
  platforms. No makefile or linking changes were necessary for this
  change. Do with it what you will.