Issue starting Panda3d on Windows

Hello,

A project I am working on is having trouble starting up on some users’ computers. Below are some relevant error messages:

:display: loading display module: libpandagl.dll
Known pipe types:
  wglGraphicsPipe
(2 aux display modules not yet loaded.)
:display:windisplay: OS version: 6.2.2.9200
:display:windisplay:   
:display:windisplay: max Mhz 3000000000, current Mhz 3000000000
:display:windisplay(warning): Could not find cursor filename phase_3/etc/toonmono.cur
:display:windisplay(warning): Could not find icon filename phase_3/etc/icon.ico
:display:windisplay(warning): SetForegroundWindow() failed!
:display:gsg:glgsg(error): at 3096 of c:\panda3d\panda\src\glstuff\glGraphicsStateGuardian_src.cxx : invalid enumerant

Then later on…

:display:gsg:glgsg(error): at 7810 of c:\panda3d\panda\src\glstuff\glGraphicsStateGuardian_src.cxx : invalid enumerant
:display:gsg:glgsg(error): at 7810 of c:\panda3d\panda\src\glstuff\glGraphicsStateGuardian_src.cxx : invalid enumerant

What are some possible causes for this?

Thanks.

My first guess is bad/out-dated OpenGL drivers. So you know which GPUs this error is appearing on?

Unfortunately no, but I suspect it likely is a pretty old system. Compounded with drivers which were probably never updated… I managed to get the game to load using the directx driver, but unfortunately I can’t get some of the particle effects to work on it (is this a known issue?).

Is there a way to automatically detect failures like this so I can switch over to DirectX if stuff like this happens rather than just leave people with a black screen?