mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +00:00
Use GL_BGRA_EXT format with ANGLE.
This commit is contained in:
@@ -210,8 +210,8 @@ void Panel::Incoming::RendererGL::paint(
|
||||
if (upload) {
|
||||
uploadTexture(
|
||||
f,
|
||||
GL_RGBA,
|
||||
GL_RGBA,
|
||||
Ui::GL::kFormatRGBA,
|
||||
Ui::GL::kFormatRGBA,
|
||||
data.original.size(),
|
||||
_rgbaSize,
|
||||
data.original.bytesPerLine() / 4,
|
||||
|
@@ -973,8 +973,8 @@ void Viewport::RendererGL::bindFrame(
|
||||
const auto data = image.constBits();
|
||||
uploadTexture(
|
||||
f,
|
||||
GL_RGBA,
|
||||
GL_RGBA,
|
||||
Ui::GL::kFormatRGBA,
|
||||
Ui::GL::kFormatRGBA,
|
||||
image.size(),
|
||||
tileData.rgbaSize,
|
||||
stride,
|
||||
|
@@ -282,8 +282,8 @@ void OverlayWidget::RendererGL::paintTransformedStaticContent(
|
||||
const auto stride = 2;
|
||||
const uint32_t data[4] = { 0 };
|
||||
uploadTexture(
|
||||
GL_RGBA,
|
||||
GL_RGBA,
|
||||
Ui::GL::kFormatRGBA,
|
||||
Ui::GL::kFormatRGBA,
|
||||
QSize(2, 2),
|
||||
_rgbaSize,
|
||||
stride,
|
||||
@@ -292,8 +292,8 @@ void OverlayWidget::RendererGL::paintTransformedStaticContent(
|
||||
const auto stride = image.bytesPerLine() / 4;
|
||||
const auto data = image.constBits();
|
||||
uploadTexture(
|
||||
GL_RGBA,
|
||||
GL_RGBA,
|
||||
Ui::GL::kFormatRGBA,
|
||||
Ui::GL::kFormatRGBA,
|
||||
image.size(),
|
||||
_rgbaSize,
|
||||
stride,
|
||||
|
@@ -356,8 +356,8 @@ void Pip::RendererGL::paintTransformedStaticContent(
|
||||
const auto stride = image.bytesPerLine() / 4;
|
||||
const auto data = image.constBits();
|
||||
uploadTexture(
|
||||
GL_RGBA,
|
||||
GL_RGBA,
|
||||
Ui::GL::kFormatRGBA,
|
||||
Ui::GL::kFormatRGBA,
|
||||
image.size(),
|
||||
_rgbaSize,
|
||||
stride,
|
||||
|
Submodule Telegram/lib_ui updated: 9c552215ab...ed6c2cb541
Reference in New Issue
Block a user