X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=utils%2Fvisual-gl.c;h=c4b940b4bee0a5135ebaeff4fd5e2526aa7184d6;hp=c6bb288253ae734d5900f5e32f1b7ab89c50e3f7;hb=refs%2Fheads%2Fmaster;hpb=78add6e627ee5f10e1fa6f3852602ea5066eee5a diff --git a/utils/visual-gl.c b/utils/visual-gl.c index c6bb2882..c4b940b4 100644 --- a/utils/visual-gl.c +++ b/utils/visual-gl.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1999-2011 by Jamie Zawinski +/* xscreensaver, Copyright (c) 1999-2018 by Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -47,10 +47,7 @@ get_gl_visual (Screen *screen) # define DB GLX_DOUBLEBUFFER # define ST GLX_STENCIL_SIZE -# if defined(GL_SAMPLE_BUFFERS) -# define SB GL_SAMPLE_BUFFERS -# define SM GL_SAMPLES -# elif defined(GLX_SAMPLE_BUFFERS) +# if defined(GLX_SAMPLE_BUFFERS) /* Needs to come before GL_SAMPLE_BUFFERS */ # define SB GLX_SAMPLE_BUFFERS # define SM GLX_SAMPLES # elif defined(GLX_SAMPLE_BUFFERS_ARB) @@ -59,8 +56,12 @@ get_gl_visual (Screen *screen) # elif defined(GLX_SAMPLE_BUFFERS_SGIS) # define SB GLX_SAMPLE_BUFFERS_SGIS # define SM GLX_SAMPLES_SGIS +# elif defined(GL_SAMPLE_BUFFERS) +# define SB GL_SAMPLE_BUFFERS +# define SM GL_SAMPLES # endif + int attrs[][40] = { # ifdef SB /* rgba double stencil multisample */ { GLX_RGBA, R,8, G,8, B,8, A,8, D,8, DB, ST,1, SB,1, SM,8, 0 },