From 6a802158597ae8b58b8c8304465f62b5b02ce9ce Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Thu, 24 Jul 2014 11:07:48 +0200 Subject: Enable building ANGLE with D3D11 in -opengl dynamic builds. Task-number: QTBUG-40193 Change-Id: If70943355d650cd3f20f4ff25fa09417a28a2b93 Reviewed-by: Andrew Knight --- tools/configure/configureapp.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'tools') diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp index 6c49b2dc79..21bc896769 100644 --- a/tools/configure/configureapp.cpp +++ b/tools/configure/configureapp.cpp @@ -2569,8 +2569,9 @@ bool Configure::verifyConfiguration() } if (dictionary["DYNAMICGL"] == "yes") { - if (dictionary["OPENGL_ES_2"] == "yes" || dictionary["ANGLE"] != "no") { - cout << "ERROR: Dynamic OpenGL cannot be used together with native Angle (GLES2) builds." << endl; + // Note that d3d11 is still allowed for ANGLE, hence the check for == "yes". + if (dictionary["OPENGL_ES_2"] == "yes" || dictionary["ANGLE"] == "yes") { + cout << "ERROR: Dynamic OpenGL cannot be used with -angle." << endl; dictionary[ "DONE" ] = "error"; } } @@ -2656,8 +2657,11 @@ void Configure::generateOutputVars() } // Dynamic OpenGL loading --------------------------------------- - if (dictionary[ "DYNAMICGL" ] != "no") + if (dictionary[ "DYNAMICGL" ] != "no") { qtConfig += "dynamicgl"; + if (dictionary[ "ANGLE" ] == "d3d11") + qmakeConfig += "angle_d3d11"; + } // Image formates ----------------------------------------------- if (dictionary[ "GIF" ] == "no") -- cgit v1.2.3