From 8cbf2aee75e8218c09290c183f389e27b45c8bb6 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Fri, 15 Jul 2016 15:23:21 +0200 Subject: [PATCH] add missing "enable" fields to opengl features this ensures that we complain if desktop gl or gles2 is explicitly requested but not available. Change-Id: Iad068ef34cdf9353cb483d4dc667ddd85ded740d Reviewed-by: Lars Knoll --- configure.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.json b/configure.json index ed8560d460..e80cea27a4 100644 --- a/configure.json +++ b/configure.json @@ -2022,6 +2022,7 @@ }, "opengles2": { "description": "OpenGL ES 2.0", + "enable": "input.opengl == 'es2'", "disable": "input.opengl == 'desktop' || input.opengl == 'no'", "condition": "!features.opengl-desktop && tests.opengles2", "output": [ @@ -2043,6 +2044,7 @@ }, "opengl-desktop": { "description": "Desktop OpenGL", + "enable": "input.opengl == 'desktop'", "disable": "input.opengl == 'es2' || input.opengl == 'no'", "condition": "(config.win32 && tests.opengl-mingw) || (!config.win32 && tests.opengl-desktop)", "output": [ { "type": "library", "name": "OPENGL", "test": "opengl-desktop", "condition": "!config.win32" } ]