Added initial ARB_robustness support.
diff --git a/src/opengl.c b/src/opengl.c
index 31e3bbe..a08f97f 100644
--- a/src/opengl.c
+++ b/src/opengl.c
@@ -320,6 +320,16 @@
         return GL_FALSE;
     }
 
+    if (wndconfig->glRobustness)
+    {
+        if (wndconfig->glRobustness != GLFW_OPENGL_NO_RESET_NOTIFICATION &&
+            wndconfig->glRobustness != GLFW_OPENGL_LOSE_CONTEXT_ON_RESET)
+        {
+            _glfwSetError(GLFW_INVALID_VALUE, "glfwOpenWindow: Invalid OpenGL robustness mode requested");
+            return GL_FALSE;
+        }
+    }
+
     return GL_TRUE;
 }
 
@@ -335,6 +345,7 @@
     // As these are hard constraints when non-zero, we can simply copy them
     window->glProfile = wndconfig->glProfile;
     window->glForward = wndconfig->glForward;
+    window->glRobustness = wndconfig->glRobustness;
 
     if (window->glMajor < wndconfig->glMajor ||
         (window->glMajor == wndconfig->glMajor &&