From fa58cc393d81f6c61fb48970ec7a257a9f520969 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sat, 5 Mar 2011 13:23:06 +0100 Subject: [PATCH] Added check for GL_ARB_multisample to FSAA test. --- tests/fsaa.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/fsaa.c b/tests/fsaa.c index af6dd7d1..8a9d1f10 100644 --- a/tests/fsaa.c +++ b/tests/fsaa.c @@ -105,6 +105,14 @@ int main(int argc, char** argv) exit(EXIT_FAILURE); } + if (!glfwExtensionSupported("GL_ARB_multisample")) + { + glfwTerminate(); + + fprintf(stderr, "Context reports GL_ARB_multisample is not supported\n"); + exit(EXIT_FAILURE); + } + glfwSetWindowSizeCallback(window_size_callback); glfwSwapInterval(1);