Re: [AD] SF.net SVN: alleg:[13300] allegro/branches/4.9/src/x/xdisplay.c

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> Log Message:
> -----------
> Write OpenGL version in log file at x11 display init.
> 
> Modified Paths:
> --------------
>    allegro/branches/4.9/src/x/xdisplay.c
> 
> Modified: allegro/branches/4.9/src/x/xdisplay.c
> ===================================================================
> --- allegro/branches/4.9/src/x/xdisplay.c	2010-04-22 05:41:11 UTC (rev 13299)
> +++ allegro/branches/4.9/src/x/xdisplay.c	2010-04-22 09:40:16 UTC (rev 13300)
> @@ -424,6 +424,11 @@
>    _al_ogl_manage_extensions(display);
>    _al_ogl_set_extensions(ogl->extension_api);
> 
> +   /* Print out OpenGL version info */
> +   ALLEGRO_INFO("OpenGL Version: %s\n", (const char*)glGetString(GL_VERSION));
> +   ALLEGRO_INFO("Vendor: %s\n", (const char*)glGetString(GL_VENDOR));
> +   ALLEGRO_INFO("Renderer: %s\n\n", (const char*)glGetString(GL_RENDERER));
> +

Shouldn't that be in the OpenGL initialisation code so that it is automatically included on all platforms?
(I'd move it there myself, but it'll be a couple of days before I have time to do that and by then I might have forgotten).

Evert



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/