Commit 6f8bc4de authored by Thiago Macieira's avatar Thiago Macieira Committed by The Qt Project
Browse files

Make the new OpenGL function headers compile on their own


You can't use #ifndef QT_NO_OPENGL before including whatever is supposed
to define that. That's qconfig.h, included by qglobal.h.

Also, make sure that the desktop OpenGL code isn't activated when
compiling in OpenGL ES 2 mode -- QOpenGLFunctions_1_0_CoreBackend and
other classes aren't defined.

Change-Id: I127edf56d42257580579789d0566b7e11c21133b
Reviewed-by: default avatarSean Harmer <sean.harmer@kdab.com>
parent 5107caca
Branches
Tags
No related merge requests found
Showing with 80 additions and 40 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment