1 /*-------------------------------------------------------------------------
2 * OpenGL Conformance Test Suite
3 * -----------------------------
5 * Copyright (c) 2016 Google Inc.
6 * Copyright (c) 2016 The Khronos Group Inc.
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
22 * \brief CTS rendering configuration list utility.
23 */ /*-------------------------------------------------------------------*/
25 #include "glcConfigList.hpp"
26 #include "glcConfigListEGL.hpp"
27 #include "glcConfigListWGL.hpp"
28 #include "qpDebugOut.h"
33 void getDefaultConfigList(tcu::Platform& platform, glu::ApiType type, ConfigList& configList)
37 getConfigListEGL(platform, type, configList);
39 catch (const std::exception& e)
41 qpPrintf("No EGL configs enumerated: %s\n", e.what());
46 getConfigListWGL(platform, type, configList);
48 catch (const std::exception& e)
50 qpPrintf("No WGL configs enumerated: %s\n", e.what());
53 if (configList.configs.empty())
55 qpPrintf("Warning: No configs enumerated, adding only default config!\n");
56 configList.configs.push_back(Config(CONFIGTYPE_DEFAULT, 0, SURFACETYPE_WINDOW));