Fix GL wrapper and wrapper debug mode