mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fix working using OpenGLES / ANGLE.
This commit is contained in:
parent
10636d931f
commit
68be54288c
4 changed files with 7 additions and 5 deletions
|
@ -197,7 +197,7 @@ float insideTexture() {
|
|||
vec2 fromTextureCenter = abs(v_texcoord - textureHalf);
|
||||
vec2 fromTextureEdge = max(fromTextureCenter, textureHalf) - textureHalf;
|
||||
float outsideCheck = dot(fromTextureEdge, fromTextureEdge);
|
||||
return step(outsideCheck, 0);
|
||||
return step(outsideCheck, 0.);
|
||||
}
|
||||
|
||||
vec4 background() {
|
||||
|
|
|
@ -18,7 +18,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "core/sandbox.h"
|
||||
#include "base/concurrent_timer.h"
|
||||
|
||||
//#include <QtCore/QLoggingCategory>
|
||||
#include <QtCore/QLoggingCategory>
|
||||
|
||||
namespace Core {
|
||||
namespace {
|
||||
|
@ -100,6 +100,9 @@ void ComputeDebugMode() {
|
|||
if (cDebugMode()) {
|
||||
Logs::SetDebugEnabled(true);
|
||||
}
|
||||
if (Logs::DebugEnabled()) {
|
||||
QLoggingCategory::setFilterRules("qt.qpa.gl.debug=true");
|
||||
}
|
||||
}
|
||||
|
||||
void ComputeExternalUpdater() {
|
||||
|
@ -527,7 +530,6 @@ void Launcher::processArguments() {
|
|||
int Launcher::executeApplication() {
|
||||
FilteredCommandLineArguments arguments(_argc, _argv);
|
||||
Sandbox sandbox(this, arguments.count(), arguments.values());
|
||||
//QLoggingCategory::setFilterRules("qt.qpa.gl.debug=true");
|
||||
Ui::MainQueueProcessor processor;
|
||||
base::ConcurrentTimerEnvironment environment;
|
||||
return sandbox.start();
|
||||
|
|
|
@ -116,7 +116,7 @@ uniform float roundRadius;
|
|||
)" + shadow.header + R"(
|
||||
|
||||
float roundedCorner() {
|
||||
vec2 rectHalf = roundRect.zw / 2;
|
||||
vec2 rectHalf = roundRect.zw / 2.;
|
||||
vec2 rectCenter = roundRect.xy + rectHalf;
|
||||
vec2 fromRectCenter = abs(gl_FragCoord.xy - rectCenter);
|
||||
vec2 vectorRadius = vec2(roundRadius + 0.5, roundRadius + 0.5);
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit f58fd1b9277301d1d5a167fc0809558425ce608e
|
||||
Subproject commit 27e9e349bf6c817f13f1989e12cd3df7041c0bdc
|
Loading…
Add table
Reference in a new issue