--gpu flag never works
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
enblend (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: enblend
enblend is capable of offloading some computation onto certain GPUs. However, this feature is broken in the version shipped with Hardy. This might be a quirk of freeglut, or enblend might be doing it wrong. As it's fixed in newer versions, I believe it's a mistake on enblend's end which other GLUT implementations don't catch.
I used files from here: http://
$ enblend --gpu -v -o scottishparliam
freeglut ERROR: Function <glutCreateWindow> called without first calling 'glutInit'.
The addition of a call to glutInit() when the --gpu flag is passed fixes this problem:
$ ./enblend --gpu -v -o scottishparliam
enblend: using graphics card: Tungsten Graphics, Inc. Mesa DRI R200 20060602 AGP 4x x86/MMX/SSE2 TCL
enblend: extension GL_ARB_
enblend: extension GL_ARB_
enblend: extension GL_ARB_
enblend: extension GL_ARB_
enblend: this graphics card lacks the necessary extensions for --gpu.
enblend: sorry, the --gpu flag is not going to work on this machine.
(I assume that if I had spiffier hardware and/or drivers, this would work some nifty magic.)
The attached dpatch adds the missing call. Any comments would be much appreciated, as well as a debdiff; I've yet to get the hang of generating them properly. If the patch is acceptable, I'll fill out an SRU application for Hardy and Intrepid.
This bug is fixed in 3.2, which is in Jaunty, but is present in 3.0.dfsg.
I've learned how to make debdiffs; one applying the above dpatch is attached.