mirror of https://github.com/buggins/dlangui.git
refactoring
This commit is contained in:
parent
7924bcf4a9
commit
2cb21339e5
|
@ -461,6 +461,10 @@ class GLSupport {
|
||||||
@property bool legacyMode() { return _legacyMode; }
|
@property bool legacyMode() { return _legacyMode; }
|
||||||
|
|
||||||
this(bool legacy = false) {
|
this(bool legacy = false) {
|
||||||
|
if (legacy && !glLightfv) {
|
||||||
|
Log.w("GLSupport legacy API is not supported");
|
||||||
|
legacy = false;
|
||||||
|
}
|
||||||
_legacyMode = legacy;
|
_legacyMode = legacy;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue