From e51e049ad54c4de79d557b20f0d4853937f2c913 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Wed, 16 Jan 2013 06:38:17 +0100 Subject: [PATCH] Added error for no selected client library. --- src/internal.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/internal.h b/src/internal.h index 264b40eb..9b88e676 100644 --- a/src/internal.h +++ b/src/internal.h @@ -81,10 +81,14 @@ typedef struct _GLFWmonitor _GLFWmonitor; #include "config.h" -#if defined(_GLFW_USE_GLESV1) +#if defined(_GLFW_USE_OPENGL) + // This is the default for glfw3.h +#elif defined(_GLFW_USE_GLESV1) #define GLFW_INCLUDE_ES1 #elif defined(_GLFW_USE_GLESV2) #define GLFW_INCLUDE_ES2 +#else + #error "No supported client library selected" #endif // Disable the inclusion of the platform glext.h by gl.h to allow proper