为什么在Windows上用GLFW创建窗口失败?
Why do I fail to create a window with GLFW on Windows?
如果有人能告诉我这是什么问题,我将很高兴。
int main() {
glfwWindowHint(GLFW_SAMPLES, 4);
glfwWindowHint(GLFW_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_VERSION_MINOR, 3);
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
GLFWwindow* window;
window = glfwCreateWindow(1024, 768, "window", NULL, NULL);
}
看起来Windows上的OpenGL驱动程序存在问题。
尝试检查和更新您的OpenGL驱动程序:
- 安装OpenGL查看器,例如GLview实用程序,以查看机器上安装的OpenGL版本。
- 对于Windows XP, Windows Vista和Windows 7,打开查看器以查找计算机上运行的OpenGL版本和驱动程序版本。
- 点击"检查更新的驱动程序"链接以确定是否需要任何驱动程序更新。
节选自本网站
相关文章:
- 创建进程 API 失败,在窗口 122 上出现错误代码 10
- C++ 窗口本地系统模拟在子进程中失败
- C++,弹出调试断言失败窗口,我得到矢量迭代器不兼容的错误运行时
- xcb_get_image_reply另一个工作区/桌面上的窗口失败
- 视觉C++窗口创建失败
- Qt 窗口包含提升线程标头失败
- 我遇到此问题,运行程序时出现一个弹出窗口,指出调试断言失败
- C++/SFML窗口创建失败
- 我用c编写了一些代码来制作简单的win32窗口,但失败了
- 链接失败。如何使用'NtQuerySystemTime'窗口功能?
- MDI 子窗口创建失败
- 在任务管理器窗口之后放置窗口失败并出现ERROR_ACCESS_DENIED
- Win32窗口创建失败
- 如果在窗口关闭内部调用QThread finished(),则发射失败
- 调用glfwWindowHint()后,GLFW窗口创建失败
- GTest和GoogleMock EXPECT_CALL在窗口中失败,在Mac上通过char*param
- GTK+中的重复窗口无效:经过几个步骤后失败
- MFC窗口工具栏创建失败,没有错误消息
- c++ Win32.SelectObject失败,GetLastError返回错误1400(无效窗口句柄)
- 为什么在Windows上用GLFW创建窗口失败?