Tweak GLES compile-time switch semantics
authorparasti <parasti@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Wed, 25 May 2011 16:47:03 +0000 (16:47 +0000)
committerparasti <parasti@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Wed, 25 May 2011 16:47:03 +0000 (16:47 +0000)
git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3583 78b8d119-cf0a-0410-b17c-f493084dd1d7

ball/main.c
putt/main.c
share/glext.c
share/glext.h
share/solid_draw.c
share/video.c

index dd4a6bd..98a33d9 100644 (file)
@@ -65,7 +65,7 @@ static void shot_take(void)
 
 static void toggle_wire(void)
 {
-#ifndef CONF_OPENGLES
+#if !ENABLE_OPENGLES
     static int wire = 0;
 
     if (wire)
index e467879..1c173da 100644 (file)
@@ -64,7 +64,7 @@ static void shot_take(void)
 
 static void toggle_wire(void)
 {
-#ifndef CONF_OPENGLES
+#if !ENABLE_OPENGLES
     static int wire = 0;
 
     if (wire)
index feccbb2..cd0d795 100644 (file)
@@ -18,7 +18,7 @@
 
 /*---------------------------------------------------------------------------*/
 
-#ifndef CONF_OPENGLES
+#if !ENABLE_OPENGLES
 
 PFNGLCLIENTACTIVETEXTURE_PROC glClientActiveTexture_;
 PFNGLACTIVETEXTURE_PROC       glActiveTexture_;
@@ -66,7 +66,7 @@ int glext_check(const char *needle)
 
 void glext_init(void)
 {
-#ifndef CONF_OPENGLES
+#if !ENABLE_OPENGLES
 
     void *ptr;
 
@@ -96,7 +96,7 @@ void glext_init(void)
 
 void glClipPlane4f(GLenum p, GLfloat a, GLfloat b, GLfloat c, GLfloat d)
 {
-#ifdef CONF_OPENGLES
+#if ENABLE_OPENGLES
 
     GLfloat v[4];
 
index 7aec78e..26ea12d 100644 (file)
@@ -95,7 +95,7 @@ void glext_init(void);
     defined(GL_VERSION_ES_CM_1_1) || \
     defined(GL_OES_VERSION_1_0)
 
-#define CONF_OPENGLES 1
+#define ENABLE_OPENGLES 1
 
 #define glClientActiveTexture_ glClientActiveTexture
 #define glActiveTexture_       glActiveTexture
@@ -147,7 +147,7 @@ typedef void (*PFNGLPOINTPARAMETERFV_PROC)(GLenum, const GLfloat *);
 extern PFNGLPOINTPARAMETERFV_PROC glPointParameterfv_;
 
 /*---------------------------------------------------------------------------*/
-#endif /* !CONF_OPENGLES */
+#endif /* !ENABLE_OPENGLES */
 
 void glClipPlane4f(GLenum, GLfloat, GLfloat, GLfloat, GLfloat);
 
index 38af14d..cdee133 100644 (file)
@@ -256,7 +256,7 @@ void sol_apply_mtrl(const struct d_mtrl *mp_draw, struct s_rend *rend)
 
     /* Environment mapping. */
 
-#ifndef CONF_OPENGLES
+#if !ENABLE_OPENGLES
     if ((mp_base->fl & M_ENVIRONMENT) ^ (mq_base->fl & M_ENVIRONMENT))
     {
         if (mp_base->fl & M_ENVIRONMENT)
index 2d51ab4..0d2fb5a 100644 (file)
@@ -98,7 +98,7 @@ int video_mode(int f, int w, int h)
         glEnable(GL_LIGHTING);
         glEnable(GL_BLEND);
 
-#ifndef CONF_OPENGLES
+#if !ENABLE_OPENGLES
         glLightModeli(GL_LIGHT_MODEL_COLOR_CONTROL,
                       GL_SEPARATE_SPECULAR_COLOR);
 #endif