www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.ide
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript
electronics



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

↑ ↓ ← 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
↑ ↓ 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
↑ ↓ → 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