From be311cbd441ac35905eebdc06c8230fb2e2d7f05 Mon Sep 17 00:00:00 2001 From: matusz Date: Mon, 30 Mar 2009 12:26:39 +0000 Subject: [PATCH] glade port: allow 3d renderer command line selection when no GTKGLEXT --- desmume/src/gtk-glade/main.cpp | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/desmume/src/gtk-glade/main.cpp b/desmume/src/gtk-glade/main.cpp index 33b98d64d..6a0e8697a 100755 --- a/desmume/src/gtk-glade/main.cpp +++ b/desmume/src/gtk-glade/main.cpp @@ -63,7 +63,6 @@ GPU3DInterface *core3DList[] = { #endif }; - /* * * Command line handling @@ -120,11 +119,14 @@ fill_configured_features( struct configured_features *config, g_print( _("\ --soft-convert Use software colour conversion during OpenGL\n\ screen rendering. May produce better or worse\n\ - frame rates depending on hardware.\n\ - \n\ + frame rates depending on hardware.\n\n")); +#endif + g_print( _("\ --3d-engine=ENGINE Selects 3D rendering engine\n\ 0 = disabled\n\ - 1 = internal desmume rasterizer (default)\n\ + 1 = internal desmume rasterizer (default)\n")); +#ifdef GTKGLEXT_AVAILABLE + g_print( _("\ 2 = gtkglext off-screen 3d opengl\n\n")); #endif g_print( _("\ @@ -167,19 +169,22 @@ fill_configured_features( struct configured_features *config, else if ( strcmp( argv[i], "--soft-convert") == 0) { config->software_colour_convert = 1; } +#define MAX3DEMU 2 +#else +#define MAX3DEMU 1 +#endif else if ( strncmp( argv[i], "--3d-engine=", 12) == 0) { char *end_char; int engine = strtoul( &argv[i][12], &end_char, 10); - if ( engine >= 0 && engine <= 2) { + if ( engine >= 0 && engine <= MAX3DEMU) { config->engine_3d = engine; } else { - g_printerr( _("Supported 3d engines: 0, 1, 2; use --help option for details\n")); + g_printerr( _("Supported 3d engines: 0, 1, and on some machines 2; use --help option for details\n")); good_args = 0; } } -#endif else if ( strncmp( argv[i], "--fwlang=", 9) == 0) { char *end_char; int lang = strtoul( &argv[i][9], &end_char, 10);