www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Has anyone had crash problems with Derelict + SDL + OpenGL + Intel

reply Spacen Jasset <spacenjasset yahoo.co.uk> writes:
Bit of a long shot this...

I get an Access Violation seemingly in the 18th call to immediate 
glTexCoord2f after resizing the window with SDL_SetVideoMode()

There is no usable stack trace for this

It only seems to happen with this card so far. I reload all the OpenGL 
assets as usually they are discarded on windows.

Vendor     : Intel
Renderer   : Intel 915G
Version    : 1.4.0 - Build 4.14.10.4396
Apr 14 2008
parent reply Mike Parker <aldacron71 yahoo.com> writes:
Spacen Jasset wrote:
 Bit of a long shot this...
 
 I get an Access Violation seemingly in the 18th call to immediate 
 glTexCoord2f after resizing the window with SDL_SetVideoMode()
 
 There is no usable stack trace for this
 
 It only seems to happen with this card so far. I reload all the OpenGL 
 assets as usually they are discarded on windows.
 
 Vendor     : Intel
 Renderer   : Intel 915G
 Version    : 1.4.0 - Build 4.14.10.4396
I've had problems in past C apps with resizing via SDL_SetVideoMode. IIRC, what I did then instead of resizing was to call SDL_Quit and then reinitialize everything with the new video mode settings. If that doesn't work, you might also try manually unloading and reloading the shared libraries: DerelictGL.unload(); DerelictSDL.unload(); DerelictSDL.load(); DerelictGL.load(); // reinitialize ...
Apr 14 2008
parent Spacen Jasset <spacenjasset yahoo.co.uk> writes:
Mike Parker wrote:
 Spacen Jasset wrote:
 Bit of a long shot this...

 I get an Access Violation seemingly in the 18th call to immediate 
 glTexCoord2f after resizing the window with SDL_SetVideoMode()

 There is no usable stack trace for this

 It only seems to happen with this card so far. I reload all the OpenGL 
 assets as usually they are discarded on windows.

 Vendor     : Intel
 Renderer   : Intel 915G
 Version    : 1.4.0 - Build 4.14.10.4396
I've had problems in past C apps with resizing via SDL_SetVideoMode. IIRC, what I did then instead of resizing was to call SDL_Quit and then reinitialize everything with the new video mode settings. If that doesn't work, you might also try manually unloading and reloading the shared libraries: DerelictGL.unload(); DerelictSDL.unload(); DerelictSDL.load(); DerelictGL.load(); // reinitialize ...
Aha, thanks for that. I might give that a go at some point. Is the SDL broken or is it the video driver?
Apr 15 2008