From 135be952fed3e7d855a185ae6b1dfb456bdd0499 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Tue, 7 Apr 2015 02:34:40 +0200 Subject: [PATCH] Added reporting of unlikely WGL extension error. --- src/wgl_context.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wgl_context.c b/src/wgl_context.c index dbae2bd4..1c0759c2 100644 --- a/src/wgl_context.c +++ b/src/wgl_context.c @@ -133,7 +133,9 @@ static int getPixelFormatAttrib(_GLFWwindow* window, int pixelFormat, int attrib pixelFormat, 0, 1, &attrib, &value)) { - // NOTE: We should probably handle this error somehow + _glfwInputError(GLFW_PLATFORM_ERROR, + "WGL: Failed to retrieve pixel format attribute %i", + attrib); return 0; }