Added error message for missing MSAA extension.
This commit is contained in:
parent
59afffb373
commit
893e03e5d2
@ -97,6 +97,7 @@ int main(int argc, char** argv)
|
|||||||
printf("Requesting that FSAA not be available\n");
|
printf("Requesting that FSAA not be available\n");
|
||||||
|
|
||||||
glfwWindowHint(GLFW_SAMPLES, samples);
|
glfwWindowHint(GLFW_SAMPLES, samples);
|
||||||
|
glfwWindowHint(GLFW_VISIBLE, GL_FALSE);
|
||||||
|
|
||||||
window = glfwCreateWindow(800, 400, "Aliasing Detector", NULL, NULL);
|
window = glfwCreateWindow(800, 400, "Aliasing Detector", NULL, NULL);
|
||||||
if (!window)
|
if (!window)
|
||||||
@ -113,10 +114,14 @@ int main(int argc, char** argv)
|
|||||||
|
|
||||||
if (!glfwExtensionSupported("GL_ARB_multisample"))
|
if (!glfwExtensionSupported("GL_ARB_multisample"))
|
||||||
{
|
{
|
||||||
|
printf("GL_ARB_multisample extension not supported\n");
|
||||||
|
|
||||||
glfwTerminate();
|
glfwTerminate();
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
glfwShowWindow(window);
|
||||||
|
|
||||||
glGetIntegerv(GL_SAMPLES_ARB, &samples);
|
glGetIntegerv(GL_SAMPLES_ARB, &samples);
|
||||||
if (samples)
|
if (samples)
|
||||||
printf("Context reports FSAA is available with %i samples\n", samples);
|
printf("Context reports FSAA is available with %i samples\n", samples);
|
||||||
|
Loading…
Reference in New Issue
Block a user