SDL_OPENGL flag causes VC++ app to crash
Hello.
I am trying to port an OpenGL/SDL application from linux to windows. The problem I am having is that the program crashes if I include the flag SDL_OPENGL in the SDL_SetVideoMode function. Suggestions?
I am using SDL1.2.8 and VC++ 7.0.
The program works fine in linux, and properly (but without graphics) in windows if the flag is omitted. I have included sdl.lib sdlMain.lib glut32.lib opengl32.lib glu32.lib. The project is empty Win32 application, code generation is set to multi-threaded DLL.
I have seen a few postings for this error on the web, but no solutions.
I am trying to port an OpenGL/SDL application from linux to windows. The problem I am having is that the program crashes if I include the flag SDL_OPENGL in the SDL_SetVideoMode function. Suggestions?
I am using SDL1.2.8 and VC++ 7.0.
The program works fine in linux, and properly (but without graphics) in windows if the flag is omitted. I have included sdl.lib sdlMain.lib glut32.lib opengl32.lib glu32.lib. The project is empty Win32 application, code generation is set to multi-threaded DLL.
I have seen a few postings for this error on the web, but no solutions.
This is a Mac programming board, so you're unlikely to get much help...
Do you have the latest OpenGL drivers for your video card installed?
Do you have the latest OpenGL drivers for your video card installed?
sorry, didn't realize that this was a mac board.
i don't know if I have the latest drivers. actually, the linux and windows systems
are on two seperate computers, so I should have checked for hardware problems.
thanks for the suggestion.
i don't know if I have the latest drivers. actually, the linux and windows systems
are on two seperate computers, so I should have checked for hardware problems.
thanks for the suggestion.
You might want to try recompiling SDL from source with VC7. I think the default precompiled libs and dlls are using VC6. That 'might' be the crux of the problem.
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| DXGI_SWAP_CHAIN_FLAG_GDI_COMPATIBLE Flag | Belkacem | 3 | 5,024 |
Mar 9, 2011 11:12 AM Last Post: Nobody |
|

