Skip to content

Commit adaedb6

Browse files
dos1SiegeLord
authored andcommitted
opengl: don't force POT bitmaps on GLES
Android devices that don't like NPOT FBOs are probably long gone and incompatible with current versions of Allegro anyway. If you need it, POT bitmaps can be always forced using Allegro configuration by masking GL_ARB_texture_non_power_of_two and GL_OES_texture_npot extensions.
1 parent 2248b5d commit adaedb6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/opengl/ogl_bitmap.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,8 +1038,7 @@ ALLEGRO_BITMAP *_al_ogl_create_bitmap(ALLEGRO_DISPLAY *d, int w, int h,
10381038
}
10391039
}
10401040

1041-
/* Android included because some devices require POT FBOs */
1042-
if (IS_OPENGLES || !d->extra_settings.settings[ALLEGRO_SUPPORT_NPOT_BITMAP]) {
1041+
if (!d->extra_settings.settings[ALLEGRO_SUPPORT_NPOT_BITMAP]) {
10431042
true_w = pot(true_w);
10441043
true_h = pot(true_h);
10451044
}

0 commit comments

Comments
 (0)