Bug#602424: elmerfem: More armel qreal trouble

Phil Endecott phil_zexmx_endecott at chezphil.org
Thu Nov 4 22:07:06 UTC 2010


Hi Adam,

I saw your message to debian-arm, a list which I sometimes read but am 
not subscribed to, hence this off-list reply.  I don't know anything 
about qt but I have been learning OpenGL recently.  Here's my suggestion:

inline void glGetQrealv(GLenum e, GLfloat* data) { glGetFloatv(e,data); }
inline void glGetQrealv(GLenum e, GLdouble* data) { 
glGetDoublev(e,data); }

Then replace the calls to glGetDoublev() that want qreals with calls to 
glGetQrealv().  This should work on platforms where qreal is of either type.

Good luck!


Phil.









More information about the debian-science-maintainers mailing list