Crash when generating VBOs
BlitzMax Forums/BlitzMax Programming/Crash when generating VBOs
| ||
Hey peeps, so either I'm completely stupid or something is wrong with my OpenGL. Basically, I'm trying to create a VBO buffer, also a framebuffer. However, when I do so, my app is crashing. I tried with: - glGenVertexArrays - glGenFramebuffers When these functions are being called, glewInit() was already called. If it helps anything to resolve the issue, I am on Windows 8 64-bit, with a Radeon HD7770 2 GB. I'm starting to suspect that this is a problem with the Radeon and the driver attempting to create said buffers on the hardware. Any ideas? // EDIT In addition, I'd like to mention that I'm creating OpenGL contexts with MaxGUI. Although I'm unsure that it has impact on this, I'm mentioning it anyways. |
| ||
Does it crash upon creation of the buffers or usage? Are you querying for any fbo creation exceptions? Local status:Int = glCheckFramebufferStatus(GL_FRAMEBUFFER); If(status = GL_FRAMEBUFFER_COMPLETE) DebugLog "FBO Setup complete!" ElseIf (status = GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT) DebugLog "FBO Incomplete Attachment" ElseIf (status = GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT) DebugLog "FBO Incomplete Missing Attachment" ' ElseIf (status = GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS) ' DebugLog "FBO Incomplete Dimensions" ' ElseIf (status = GL_FRAMEBUFFER_INCOMPLETE_FORMATS) ' DebugLog "FBO Incomplete Formats" ElseIf (status = GL_FRAMEBUFFER_UNSUPPORTED) DebugLog "Framebuffer Unsupported" Else DebugLog "Error" EndIf |
| ||
It crashes when attempting to create either of those buffers, for no apparent reason. I tried several variations of creating such buffers, all to no avail. I'm yet to try it on another PC. // EDIT A very simple program, such as: AppTitle = "GL Test" SetGraphicsDriver GLGraphicsDriver() GLGraphics 800, 600 Repeat Until AppTerminate() crashes at GLGraphics. I have run the same app on another machine, which works fine. Starting to suspect a Radeon driver issue. // EDIT 2 You won't believe this. I was using a tool named "ConEmu" for the command line things I do. Turns out that, for some reason, using ConEmu somehow interfered with the operation of the OpenGL driver. Using a normal cmd window runs any OpenGL program, including buffer generation, perfectly fine. |
| ||
glGenBuffers are used for VBOs, not glGenFrameBuffer. Two totally different things. |