@@ -134,7 +134,7 @@ static void vert_ptr_on(ALLEGRO_DISPLAY *display, int n, GLint t, int stride, vo
134
134
#endif
135
135
}
136
136
else {
137
- #ifndef ALLEGRO_CFG_OPENGLES2
137
+ #ifdef ALLEGRO_CFG_OPENGL_FIXED_FUNCTION
138
138
glEnableClientState (GL_VERTEX_ARRAY );
139
139
glVertexPointer (n , t , stride , v );
140
140
#endif
@@ -151,7 +151,7 @@ static void vert_ptr_off(ALLEGRO_DISPLAY *display)
151
151
#endif
152
152
}
153
153
else {
154
- #ifndef ALLEGRO_CFG_OPENGLES2
154
+ #ifdef ALLEGRO_CFG_OPENGL_FIXED_FUNCTION
155
155
glDisableClientState (GL_VERTEX_ARRAY );
156
156
#endif
157
157
}
@@ -168,7 +168,7 @@ static void color_ptr_on(ALLEGRO_DISPLAY *display, int n, GLint t, int stride, v
168
168
#endif
169
169
}
170
170
else {
171
- #ifndef ALLEGRO_CFG_OPENGLES2
171
+ #ifdef ALLEGRO_CFG_OPENGL_FIXED_FUNCTION
172
172
glEnableClientState (GL_COLOR_ARRAY );
173
173
glColorPointer (n , t , stride , v );
174
174
#endif
@@ -185,7 +185,7 @@ static void color_ptr_off(ALLEGRO_DISPLAY *display)
185
185
#endif
186
186
}
187
187
else {
188
- #ifndef ALLEGRO_CFG_OPENGLES2
188
+ #ifdef ALLEGRO_CFG_OPENGL_FIXED_FUNCTION
189
189
glDisableClientState (GL_COLOR_ARRAY );
190
190
#endif
191
191
}
@@ -202,7 +202,7 @@ static void tex_ptr_on(ALLEGRO_DISPLAY *display, int n, GLint t, int stride, voi
202
202
#endif
203
203
}
204
204
else {
205
- #ifndef ALLEGRO_CFG_OPENGLES2
205
+ #ifdef ALLEGRO_CFG_OPENGL_FIXED_FUNCTION
206
206
glEnableClientState (GL_TEXTURE_COORD_ARRAY );
207
207
glTexCoordPointer (n , t , stride , v );
208
208
#endif
@@ -219,7 +219,7 @@ static void tex_ptr_off(ALLEGRO_DISPLAY *display)
219
219
#endif
220
220
}
221
221
else {
222
- #ifndef ALLEGRO_CFG_OPENGLES2
222
+ #ifdef ALLEGRO_CFG_OPENGL_FIXED_FUNCTION
223
223
glDisableClientState (GL_TEXTURE_COORD_ARRAY );
224
224
#endif
225
225
}
@@ -409,7 +409,7 @@ static void ogl_flush_vertex_cache(ALLEGRO_DISPLAY *disp)
409
409
color_ptr_on (disp , 4 , GL_FLOAT , sizeof (ALLEGRO_OGL_BITMAP_VERTEX ),
410
410
(char * )(disp -> vertex_cache ) + offsetof(ALLEGRO_OGL_BITMAP_VERTEX , r ));
411
411
412
- #ifndef ALLEGRO_CFG_OPENGLES2
412
+ #ifdef ALLEGRO_CFG_OPENGL_FIXED_FUNCTION
413
413
if (!(disp -> flags & ALLEGRO_PROGRAMMABLE_PIPELINE ))
414
414
glDisableClientState (GL_NORMAL_ARRAY );
415
415
#endif
@@ -475,7 +475,7 @@ static void ogl_update_transformation(ALLEGRO_DISPLAY* disp,
475
475
}
476
476
#endif
477
477
} else {
478
- #ifndef ALLEGRO_CFG_OPENGLES2
478
+ #ifdef ALLEGRO_CFG_OPENGL_FIXED_FUNCTION
479
479
glMatrixMode (GL_PROJECTION );
480
480
glLoadMatrixf ((float * )target -> proj_transform .m );
481
481
glMatrixMode (GL_MODELVIEW );
0 commit comments