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
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...
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?
I think I've got exactly the same problem with 0.2.2, which has gone away after upgrading to 0.2.4.
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.
Why using GFX_AUTODETECT instead of GFX_OPENGL?