mirror of
https://github.com/glfw/glfw.git
synced 2026-01-11 15:23:17 +01:00
Begun integrating mode setting and monitor API.
This commit is contained in:
@@ -76,9 +76,6 @@ static GLboolean open_window(int width, int height, GLFWmonitor monitor)
|
||||
{
|
||||
double base;
|
||||
|
||||
if (!glfwInit())
|
||||
return GL_FALSE;
|
||||
|
||||
base = glfwGetTime();
|
||||
|
||||
window_handle = glfwCreateWindow(width, height, "Window Re-opener", monitor, NULL);
|
||||
@@ -115,6 +112,9 @@ int main(int argc, char** argv)
|
||||
|
||||
glfwSetErrorCallback(error_callback);
|
||||
|
||||
if (!glfwInit())
|
||||
exit(EXIT_FAILURE);
|
||||
|
||||
for (;;)
|
||||
{
|
||||
GLFWmonitor monitor = NULL;
|
||||
@@ -161,5 +161,7 @@ int main(int argc, char** argv)
|
||||
|
||||
count++;
|
||||
}
|
||||
|
||||
glfwTerminate();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user