From 893e03e5d2a144857ff028c84fe63860d2aa8e04 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Mon, 5 Jan 2015 01:10:51 +0100 Subject: [PATCH] Added error message for missing MSAA extension. --- tests/fsaa.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/fsaa.c b/tests/fsaa.c index ef784390..336cdd2b 100644 --- a/tests/fsaa.c +++ b/tests/fsaa.c @@ -97,6 +97,7 @@ int main(int argc, char** argv) printf("Requesting that FSAA not be available\n"); glfwWindowHint(GLFW_SAMPLES, samples); + glfwWindowHint(GLFW_VISIBLE, GL_FALSE); window = glfwCreateWindow(800, 400, "Aliasing Detector", NULL, NULL); if (!window) @@ -113,10 +114,14 @@ int main(int argc, char** argv) if (!glfwExtensionSupported("GL_ARB_multisample")) { + printf("GL_ARB_multisample extension not supported\n"); + glfwTerminate(); exit(EXIT_FAILURE); } + glfwShowWindow(window); + glGetIntegerv(GL_SAMPLES_ARB, &samples); if (samples) printf("Context reports FSAA is available with %i samples\n", samples);