SDL_OPENGL flag causes VC++ app to crash

Post: #1
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.
Quote this message in a reply
Posts: 5,143
Joined: 2002.04
Post: #2
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?
Quote this message in a reply
Post: #3
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.
Quote this message in a reply
Posts: 131
Joined: 2004.10
Post: #4
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.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  DXGI_SWAP_CHAIN_FLAG_GDI_COMPATIBLE Flag Belkacem 3 8,165 Mar 9, 2011 11:12 AM
Last Post: Nobody