We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36c5980 commit 93d7315Copy full SHA for 93d7315
src/opengl/ogl_draw.c
@@ -357,8 +357,12 @@ static void ogl_flush_vertex_cache(ALLEGRO_DISPLAY *disp)
357
glBindTexture(GL_TEXTURE_2D, disp->cache_texture);
358
}
359
360
-#if !defined(ALLEGRO_CFG_OPENGLES) && !defined(ALLEGRO_MACOSX)
+#if !defined(ALLEGRO_CFG_OPENGLES)
361
+#if defined(ALLEGRO_MACOSX)
362
+ if (disp->flags & (ALLEGRO_PROGRAMMABLE_PIPELINE | ALLEGRO_OPENGL_3_0)) {
363
+#else
364
if (disp->flags & ALLEGRO_PROGRAMMABLE_PIPELINE) {
365
+#endif
366
int stride = sizeof(ALLEGRO_OGL_BITMAP_VERTEX);
367
int bytes = disp->num_cache_vertices * stride;
368
0 commit comments