On 12.04.2017 20:50 Ian MacArthur wrote:
> On Wed Apr 12 2017 17:44:57, Roman K wrote:
>> I've got issues with OpenGL acceleration: On some windows machines Fl_Gl_Window does very slow rendering, presumably only by software emulation.
>> When compiling/linking to previous version of fltk, everything works just fine - with hardware acceleration.
Please clarify:
(a) are you really observing slow behavior in 1.3.4, or did you mean
1.4.0 ?
(b) which "previous version" of fltk works "just fine" ?
I'm asking because Ian wrote:
> Well, that’s interesting; I have a laptop with Win10, and some of my GL code is inexplicably slow on it, using fltk-1.4.x. I just assumed it was a duff old laptop and Win10...
So Ian was likely talking about differences between 1.3.4 (1.3.x?) and
1.4.0 whereas you (Roman) wrote that you observed slow behavior in
1.3.4. I'm confused...
BTW: what Windows version do you use? Is there a difference between
Windows versions as well? See STR #3119...
Okay, trying to help a little more... see attached files:
I stripped down the relevant parts of FLTK 1.3.4 (gl_1.3.4) and FLTK
1.4.0 (gl_1.4.0) by removing conditional statements (#if...). The result
looks mostly identical but there are some differences.
Particularly I believe that it _may_ be possible that chosen_pfd is left
uninitialized in both versions if none of the pfd's "satisfy our
requirements", i.e. one of the 'continue' statements is reached for all
pfd's (maybe not very likely, but possible). In this case
g->pfd = chosen_pfd;
would assign an undefined value.
In gl_1.3.4.cxx I don't see any assignment to g->pfd at all in the code
at lines #45-49.
Now I'm even more confused.