X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fteapot.c;h=3fc95ee3fe885ddf77485e3f7bef5bcdbc9ab99f;hp=373a8b221b1c1e91fa5736759762fdc6c50c4d04;hb=f8cf5ac7b2f53510f80a0eaf286a25298be17bfe;hpb=ec8d2b32b63649e6d32bdfb306eda062769af823 diff --git a/hacks/glx/teapot.c b/hacks/glx/teapot.c index 373a8b22..3fc95ee3 100644 --- a/hacks/glx/teapot.c +++ b/hacks/glx/teapot.c @@ -50,12 +50,19 @@ OpenGL(TM) is a trademark of Silicon Graphics, Inc. #include "teapot.h" -#ifdef HAVE_COCOA -# include -#else +#ifdef HAVE_JWZGLES +int unit_teapot (int grid, int wire_p) { return 0; } +#else /* !HAVE_JWZGLES */ + + +#ifndef HAVE_COCOA # include #endif +#ifdef HAVE_JWZGLES +# include "jwzgles.h" +#endif /* HAVE_JWZGLES */ + /* Rim, body, lid, and bottom data must be reflected in x and y; handle and spout data across the y axis only. */ @@ -212,3 +219,5 @@ unit_teapot (int grid, int wire_p) return polys; } + +#endif /* !HAVE_JWZGLES */