简体   繁体   English

Windows 8 和 SDL/GLEW

[英]Windows 8 and SDL/GLEW

I installed Windows 8 CP, and realized my program crashes on runtime:我安装了 Windows 8 CP,并意识到我的程序在运行时崩溃:

Unhandled exception at 0x771fe754 in MyProgram.exe: 0xC0000005: Access violation.

I get this error when calling the following line of code:调用以下代码行时出现此错误:

glGenBuffers(NUM_VBO, VBOs_);

I am using the latest versions of both GLEW and SDL我正在使用 GLEW 和 SDL 的最新版本

The program runs fine in Windows 7, so I have no idea whats going on here...该程序在 Windows 7 中运行良好,所以我不知道这里发生了什么......

Edit:编辑:

Note: glGetError() shows up no errors before the call to glGenBuffers() .注意: glGetError()在调用glGenBuffers()之前没有显示任何错误。

---------------------------
    GLEW Extension Info
---------------------------

GLEW version 1.7.0
Reporting capabilities of pixelformat 2
Running on a GDI Generic from Microsoft Corporation
OpenGL version 1.1.0 is supported

GL_VERSION_1_1:                                                OK 

// everything else is "missing"

I managed to solve my problem - glew works fine but the intel drivers off windows update do not support OpenGL past v1.我设法解决了我的问题 - glew 工作正常,但 Windows 更新的英特尔驱动程序不支持超过 v1 的 OpenGL。 You Can check what's supported using the utility that comes with glew.您可以使用 glew 附带的实用程序检查支持的内容。

After installing a better driver my issues were resolved.安装更好的驱动程序后,我的问题得到了解决。 Note that doing this is not straight forward as they will not install normally.请注意,这样做并不简单,因为它们不会正常安装。 You have modify the inf file and re-sign the driver first.您已修改 inf 文件并首先重新签署驱动程序。 Which is beyond the scope of this question这超出了这个问题的范围

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM