glfwCreateWindow возращает 0
glfwCreateWindow возращает 0 вот код:
#include <GLFW/glfw3.h>
#include <iostream>
const GLint WIDTH = 512;
const GLint HEIGHT = 512;
int main()
{
if (!glfwInit())
{
std::cout << "NE INIT\n";
return -1;
}
GLFWwindow* window = glfwCreateWindow(WIDTH, HEIGHT, "BattleCity", nullptr, nullptr);
if (!window)
{
std::cout << "NO INIT WIN!\n";
return -1;
}
while (glfwWindowShouldClose(window))
{
glfwPollEvents();
}
glfwDestroyWindow(window);
glfwTerminate();
return 0;
}