mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 04:54:35 +00:00
Added check for GL_ARB_multisample to FSAA test.
This commit is contained in:
parent
74c9b57f3d
commit
fa58cc393d
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user