Renamed GLFW_SAMPLES and GLFW_SHOULD_CLOSE.

This commit is contained in:
Camilla Berglund
2012-12-31 19:45:13 +01:00
parent 8db1528c74
commit 21f41a2bb7
15 changed files with 24 additions and 23 deletions
+2 -2
View File
@@ -97,7 +97,7 @@ int main(int argc, char** argv)
else
printf("Requesting that FSAA not be available\n");
glfwWindowHint(GLFW_FSAA_SAMPLES, samples);
glfwWindowHint(GLFW_SAMPLES, samples);
window = glfwCreateWindow(800, 400, GLFW_WINDOWED, "Aliasing Detector", NULL);
if (!window)
@@ -128,7 +128,7 @@ int main(int argc, char** argv)
gluOrtho2D(0.f, 1.f, 0.f, 0.5f);
glMatrixMode(GL_MODELVIEW);
while (!glfwGetWindowParam(window, GLFW_CLOSE_REQUESTED))
while (!glfwGetWindowParam(window, GLFW_SHOULD_CLOSE))
{
GLfloat time = (GLfloat) glfwGetTime();