refactoring

This commit is contained in:
Vadim Lopatin 2015-12-21 10:44:19 +03:00
parent 7924bcf4a9
commit 2cb21339e5
1 changed files with 4 additions and 0 deletions

View File

@ -461,6 +461,10 @@ class GLSupport {
@property bool legacyMode() { return _legacyMode; }
this(bool legacy = false) {
if (legacy && !glLightfv) {
Log.w("GLSupport legacy API is not supported");
legacy = false;
}
_legacyMode = legacy;
}