[Interest] Maybe a problem with the include <QtOpenGL/QGLContext> on windows

Sean Harmer sh at theharmers.co.uk
Fri Aug 3 17:19:36 CEST 2012


On Friday 03 August 2012 16:41:18 arnaud but wrote:
> Hello everybody,
> 
> during my work on phonon, i remark that include <QtOpenGL/QGLContext>
> does not reference opengl on windows plattform(msvc2010) (it seems good
> on linux and mac).
> 
> in the order :
> 
> #include <QtOpenGL/QGLContext> that include :
> 
> #include "qgl.h" : into this file
> ----------------
> #if defined(Q_WS_WIN)
> # include <QtCore/qt_windows.h>
> #endif
> 
> #if defined(Q_WS_MAC)
> # include <OpenGL/gl.h>
> #elif defined(QT_OPENGL_ES_1)
> # if defined(Q_OS_MAC)
> #  include <OpenGLES/ES1/gl.h>
> # else
> #  include <GLES/gl.h>
> # endif
> ----------------------
> so on windows it uses qt_windows.h.
> qt_windows.h include windows.h but in this one there is no reference to
> gl.h.
> 
> i think we must add into qgl.h :
> 
> #if defined(Q_WS_WIN)
> # include <QtCore/qt_windows.h>
> #include <Gl/gl.h>
> #endif
> 
> what do you think about that ?

Look further down the file and you will see that it is included:

...
#else
# include <GL/gl.h>
#endif

Cheers,

Sean


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the Interest mailing list