63693430c7
These OpenGL examples require a Desktop OpenGL and will not build with OpenGL ES 2.0. This means those examples do not build on Windows with the default configuration using ANGLE. ANGLE is wrapping OpenGL ES 2.0 to DirectX and does not support the full Desktop OpenGL feature set. Since this is confusing for Windows users that do not know about ANGLE this patch adds an explicit error message describing the solution. (configuring Qt with -opengl desktop) Task-number: QTBUG-28590 Change-Id: I782e6830b9e282ddcc8a2ee0a47faf3579d36aab Reviewed-by: hjk <qthjk@ovi.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
19 lines
532 B
Prolog
19 lines
532 B
Prolog
HEADERS += glwidget.h
|
|
SOURCES += glwidget.cpp main.cpp
|
|
RESOURCES += framebufferobject2.qrc
|
|
|
|
QT += opengl widgets
|
|
|
|
# install
|
|
target.path = $$[QT_INSTALL_EXAMPLES]/opengl/framebufferobject2
|
|
INSTALLS += target
|
|
|
|
|
|
simulator: warning(This example might not fully work on Simulator platform)
|
|
|
|
contains(QT_CONFIG, opengles.) {
|
|
contains(QT_CONFIG, angle): \
|
|
warning("Qt was built with ANGLE, which provides only OpenGL ES 2.0 on top of DirectX 9.0c")
|
|
error("This example requires Qt to be configured with -opengl desktop")
|
|
}
|