Added check for GL_ARB_multisample to FSAA test.

This commit is contained in:
Camilla Berglund 2011-03-05 13:23:06 +01:00
parent 74c9b57f3d
commit fa58cc393d

View File

@ -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);