mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Try enabling OpenGL back after switching to ANGLE.
This commit is contained in:
parent
c95f052e60
commit
d91c21fb26
1 changed files with 9 additions and 4 deletions
|
@ -123,7 +123,7 @@ QByteArray Settings::serialize() const {
|
||||||
}
|
}
|
||||||
size += sizeof(qint32) * 3
|
size += sizeof(qint32) * 3
|
||||||
+ Serialize::bytearraySize(proxy)
|
+ Serialize::bytearraySize(proxy)
|
||||||
+ sizeof(qint32);
|
+ sizeof(qint32) * 2;
|
||||||
|
|
||||||
auto result = QByteArray();
|
auto result = QByteArray();
|
||||||
result.reserve(size);
|
result.reserve(size);
|
||||||
|
@ -211,11 +211,12 @@ QByteArray Settings::serialize() const {
|
||||||
stream << id << quint8(variant);
|
stream << id << quint8(variant);
|
||||||
}
|
}
|
||||||
stream
|
stream
|
||||||
<< qint32(_disableOpenGL ? 1 : 0)
|
<< qint32(0) // Old Disable OpenGL
|
||||||
<< qint32(_groupCallNoiseSuppression ? 1 : 0)
|
<< qint32(_groupCallNoiseSuppression ? 1 : 0)
|
||||||
<< qint32(_workMode.current())
|
<< qint32(_workMode.current())
|
||||||
<< proxy
|
<< proxy
|
||||||
<< qint32(_hiddenGroupCallTooltips.value());
|
<< qint32(_hiddenGroupCallTooltips.value())
|
||||||
|
<< qint32(_disableOpenGL ? 1 : 0);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@ -425,7 +426,8 @@ void Settings::addFromSerialized(const QByteArray &serialized) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!stream.atEnd()) {
|
if (!stream.atEnd()) {
|
||||||
stream >> disableOpenGL;
|
qint32 disableOpenGLOld;
|
||||||
|
stream >> disableOpenGLOld;
|
||||||
}
|
}
|
||||||
if (!stream.atEnd()) {
|
if (!stream.atEnd()) {
|
||||||
stream >> groupCallNoiseSuppression;
|
stream >> groupCallNoiseSuppression;
|
||||||
|
@ -439,6 +441,9 @@ void Settings::addFromSerialized(const QByteArray &serialized) {
|
||||||
if (!stream.atEnd()) {
|
if (!stream.atEnd()) {
|
||||||
stream >> hiddenGroupCallTooltips;
|
stream >> hiddenGroupCallTooltips;
|
||||||
}
|
}
|
||||||
|
if (!stream.atEnd()) {
|
||||||
|
stream >> disableOpenGL;
|
||||||
|
}
|
||||||
if (stream.status() != QDataStream::Ok) {
|
if (stream.status() != QDataStream::Ok) {
|
||||||
LOG(("App Error: "
|
LOG(("App Error: "
|
||||||
"Bad data for Core::Settings::constructFromSerialized()"));
|
"Bad data for Core::Settings::constructFromSerialized()"));
|
||||||
|
|
Loading…
Add table
Reference in a new issue