[Development] Unsatisfied symbols for QAbstractOpenGLFunctions

Christophe de Dinechin christophe at taodyne.com
Wed Nov 26 15:28:00 CET 2014


> On 26 Nov 2014, at 10:21, Konstantin Ritt <ritt.ks at gmail.com> wrote:
> 
> struct OpenGLState : GraphicState { TaoOpenGLFunctions *funcs; ... }
> voi-la

Nope: I don't inherit the GL functions that way, so I have to rewrite every glFoo as funcs->glFoo, which is double plus annoying. And then, there are enough levels of indirection in the existing implementation as is, no need to add One More Level Of Indirection™ ;-)

The copy constructor trick did it, though, so my recommendation would be to add a copy constructor to QAbstractOpenGLFunctions.


Thanks for the help,
Christophe




More information about the Development mailing list