@@ -534,6 +534,8 @@ class GL {
public static inline var LUMINANCE = 0x1909;
public static inline var LUMINANCE_ALPHA = 0x190A;
+ public static inline var BGRA = 0x80E1;
+ public static inline var RGBA8 = 0x8058;
/* PixelType */
/* UNSIGNED_BYTE */
@@ -155,7 +155,7 @@ class Sdl {
var dnames = new Map();
for( v in arr ) {
if( v == null ) break;
- var d = @:privateAccess String.fromUCS2(v);
+ var d = StringTools.trim(@:privateAccess String.fromUCS2(v));
if( dnames.exists(d) || StringTools.startsWith(d,"RDP") /* RemoteDesktop */ ) continue;
dnames.set(d, true);
a.push(d);