Allegro.cc - Online Community

Allegro.cc Forums » Allegro Development » Unable to find a suitable graphics driver

This thread is locked; no one can reply to it. rss feed Print
Unable to find a suitable graphics driver
Ute Sool
Member #6,964
March 2006

Hi all,

I'm sorry if my question already came up, but somehow the Search didn't work too well with combined search keywords.

My problem is that I get the following error message when starting my compiled program:

"Unable to find a suitable graphics driver".

The code that produces it is the following:

allegro_init();
init_height_field();

install_allegro_gl();

allegro_gl_clear_settings();
allegro_gl_set (AGL_COLOR_DEPTH, 32);
allegro_gl_set (AGL_Z_DEPTH, 16);
allegro_gl_set (AGL_FULLSCREEN, TRUE);
allegro_gl_set (AGL_DOUBLEBUFFER, 1);
allegro_gl_set (AGL_SUGGEST, AGL_COLOR_DEPTH | AGL_Z_DEPTH
| AGL_DOUBLEBUFFER | AGL_FULLSCREEN);

set_color_depth (32);
if (set_gfx_mode(GFX_AUTODETECT, 800, 400, 0, 0) < 0) {
allegro_message ("Allegro GL error : %s\n",
allegro_error, allegro_gl_error);
return -1;
}

Now if I pass "GFX_GL" into "set_gfx_mode" everything runs just fine. I'm guessing that there's a problem with the windowed mode?
Funny enough, all the allegro examples run just fine.

System is Windows XP, DEV-ENV is Microsoft VS .NET (7.0). I installed Allegro using the all403_bin.zip binary package from http://alleg.sourceforge.net/wip.de.html and used compiled the alleggl 0.2.2 version myself, but I guess alleggl is not what's causing the error here.

Hope, anyone can help me!

Cheers,

Sebastian

gnolam
Member #2,030
March 2002
avatar

First off, both Allegro 4.0.3 and AllegroGL 0.2.2 are absolutely ancient. Please upgrade to newer versions if at all possible.

Second, 800 x 400 is a very odd fullscreen resolution...

--
Move to the Democratic People's Republic of Vivendi Universal (formerly known as Sweden) - officially democracy- and privacy-free since 2008-06-18!

Elias
Member #358
May 2000

Quote:

I installed Allegro using the all403_bin.zip binary package from http://alleg.sourceforge.net/wip.de.html and used compiled the alleggl 0.2.2 version myself, but I guess alleggl is not what's causing the error here.

Shouldn't we move the 4.0.3 packages from "newest version" to "older versions" on the website?

--
"Either help out or stop whining" - Evert

Krzysztof Kluczek
Member #4,191
January 2004
avatar

I think I've got exactly the same problem with 0.2.2, which has gone away after upgrading to 0.2.4. :)

Niunio
Member #1,975
March 2002
avatar

I have the same problem with Allegro 4.2 and AllegroGL 0.2.5 (CVS) using WindowsXP in all OpenGL modes, but it works nice in Linux ??? Other OpenGL programs (as NEHE examples) works nice in Windows, so no driver problem.

-----------------
Current projects: Allegro.pas | MinGRo

Milan Mimica
Member #3,877
September 2003
avatar

Why using GFX_AUTODETECT instead of GFX_OPENGL?

Go to: