From c21a8573b40109a92b364fb1f18339e27d8d3aa0 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Tue, 7 Apr 2015 02:34:08 +0200 Subject: [PATCH] Replaced comment with assertion. --- src/wgl_context.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wgl_context.c b/src/wgl_context.c index ac41082e..dbae2bd4 100644 --- a/src/wgl_context.c +++ b/src/wgl_context.c @@ -122,12 +122,13 @@ static void initWGLExtensions(_GLFWwindow* window) } // Returns the specified attribute of the specified pixel format -// NOTE: Do not call this unless we have found WGL_ARB_pixel_format // static int getPixelFormatAttrib(_GLFWwindow* window, int pixelFormat, int attrib) { int value = 0; + assert(window->wgl.ARB_pixel_format); + if (!window->wgl.GetPixelFormatAttribivARB(window->wgl.dc, pixelFormat, 0, 1, &attrib, &value))