Skip to content

Commit 93d7315

Browse files
SiegeLordExSiegeLord
authored andcommitted
Fix drawing bitmaps under MacOS + GL3
It needs to use the vertex buffer path.
1 parent 36c5980 commit 93d7315

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/opengl/ogl_draw.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,8 +357,12 @@ static void ogl_flush_vertex_cache(ALLEGRO_DISPLAY *disp)
357357
glBindTexture(GL_TEXTURE_2D, disp->cache_texture);
358358
}
359359

360-
#if !defined(ALLEGRO_CFG_OPENGLES) && !defined(ALLEGRO_MACOSX)
360+
#if !defined(ALLEGRO_CFG_OPENGLES)
361+
#if defined(ALLEGRO_MACOSX)
362+
if (disp->flags & (ALLEGRO_PROGRAMMABLE_PIPELINE | ALLEGRO_OPENGL_3_0)) {
363+
#else
361364
if (disp->flags & ALLEGRO_PROGRAMMABLE_PIPELINE) {
365+
#endif
362366
int stride = sizeof(ALLEGRO_OGL_BITMAP_VERTEX);
363367
int bytes = disp->num_cache_vertices * stride;
364368

0 commit comments

Comments
 (0)