@@ -1261,6 +1261,12 @@ +(void) runFullScreenDisplay: (NSValue*) display_object
1261
1261
dpy->parent .vt = _al_osx_get_display_driver_fs ();
1262
1262
dpy->parent .refresh_rate = al_get_new_display_refresh_rate ();
1263
1263
dpy->parent .flags = al_get_new_display_flags () | ALLEGRO_OPENGL | ALLEGRO_FULLSCREEN;
1264
+ #ifdef ALLEGRO_CFG_OPENGLES2
1265
+ dpy->parent .flags |= ALLEGRO_PROGRAMMABLE_PIPELINE;
1266
+ #endif
1267
+ #ifdef ALLEGRO_CFG_OPENGLES
1268
+ dpy->parent .flags |= ALLEGRO_OPENGL_ES_PROFILE;
1269
+ #endif
1264
1270
dpy->parent .w = w;
1265
1271
dpy->parent .h = h;
1266
1272
_al_event_source_init (&dpy->parent .es );
@@ -1441,6 +1447,12 @@ +(void) runFullScreenDisplay: (NSValue*) display_object
1441
1447
dpy->parent.vt = _al_osx_get_display_driver_win();
1442
1448
dpy->parent.refresh_rate = al_get_new_display_refresh_rate();
1443
1449
dpy->parent.flags = al_get_new_display_flags() | ALLEGRO_OPENGL | ALLEGRO_FULLSCREEN;
1450
+ #ifdef ALLEGRO_CFG_OPENGLES2
1451
+ dpy->parent.flags |= ALLEGRO_PROGRAMMABLE_PIPELINE;
1452
+ #endif
1453
+ #ifdef ALLEGRO_CFG_OPENGLES
1454
+ dpy->parent.flags |= ALLEGRO_OPENGL_ES_PROFILE;
1455
+ #endif
1444
1456
dpy->parent.w = w;
1445
1457
dpy->parent.h = h;
1446
1458
_al_event_source_init(&dpy->parent.es);
@@ -1602,6 +1614,12 @@ +(void) runFullScreenDisplay: (NSValue*) display_object
1602
1614
dpy->parent .vt = _al_osx_get_display_driver_win ();
1603
1615
dpy->parent .refresh_rate = al_get_new_display_refresh_rate ();
1604
1616
dpy->parent .flags = al_get_new_display_flags () | ALLEGRO_OPENGL | ALLEGRO_WINDOWED;
1617
+ #ifdef ALLEGRO_CFG_OPENGLES2
1618
+ dpy->parent .flags |= ALLEGRO_PROGRAMMABLE_PIPELINE;
1619
+ #endif
1620
+ #ifdef ALLEGRO_CFG_OPENGLES
1621
+ dpy->parent .flags |= ALLEGRO_OPENGL_ES_PROFILE;
1622
+ #endif
1605
1623
dpy->parent .w = w;
1606
1624
dpy->parent .h = h;
1607
1625
_al_event_source_init (&dpy->parent .es );
0 commit comments