mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Use GL_BGRA_EXT format with ANGLE.
This commit is contained in:
parent
4d99c1fd44
commit
10e1feb40b
5 changed files with 11 additions and 11 deletions
|
@ -210,8 +210,8 @@ void Panel::Incoming::RendererGL::paint(
|
||||||
if (upload) {
|
if (upload) {
|
||||||
uploadTexture(
|
uploadTexture(
|
||||||
f,
|
f,
|
||||||
GL_RGBA,
|
Ui::GL::kFormatRGBA,
|
||||||
GL_RGBA,
|
Ui::GL::kFormatRGBA,
|
||||||
data.original.size(),
|
data.original.size(),
|
||||||
_rgbaSize,
|
_rgbaSize,
|
||||||
data.original.bytesPerLine() / 4,
|
data.original.bytesPerLine() / 4,
|
||||||
|
|
|
@ -973,8 +973,8 @@ void Viewport::RendererGL::bindFrame(
|
||||||
const auto data = image.constBits();
|
const auto data = image.constBits();
|
||||||
uploadTexture(
|
uploadTexture(
|
||||||
f,
|
f,
|
||||||
GL_RGBA,
|
Ui::GL::kFormatRGBA,
|
||||||
GL_RGBA,
|
Ui::GL::kFormatRGBA,
|
||||||
image.size(),
|
image.size(),
|
||||||
tileData.rgbaSize,
|
tileData.rgbaSize,
|
||||||
stride,
|
stride,
|
||||||
|
|
|
@ -282,8 +282,8 @@ void OverlayWidget::RendererGL::paintTransformedStaticContent(
|
||||||
const auto stride = 2;
|
const auto stride = 2;
|
||||||
const uint32_t data[4] = { 0 };
|
const uint32_t data[4] = { 0 };
|
||||||
uploadTexture(
|
uploadTexture(
|
||||||
GL_RGBA,
|
Ui::GL::kFormatRGBA,
|
||||||
GL_RGBA,
|
Ui::GL::kFormatRGBA,
|
||||||
QSize(2, 2),
|
QSize(2, 2),
|
||||||
_rgbaSize,
|
_rgbaSize,
|
||||||
stride,
|
stride,
|
||||||
|
@ -292,8 +292,8 @@ void OverlayWidget::RendererGL::paintTransformedStaticContent(
|
||||||
const auto stride = image.bytesPerLine() / 4;
|
const auto stride = image.bytesPerLine() / 4;
|
||||||
const auto data = image.constBits();
|
const auto data = image.constBits();
|
||||||
uploadTexture(
|
uploadTexture(
|
||||||
GL_RGBA,
|
Ui::GL::kFormatRGBA,
|
||||||
GL_RGBA,
|
Ui::GL::kFormatRGBA,
|
||||||
image.size(),
|
image.size(),
|
||||||
_rgbaSize,
|
_rgbaSize,
|
||||||
stride,
|
stride,
|
||||||
|
|
|
@ -356,8 +356,8 @@ void Pip::RendererGL::paintTransformedStaticContent(
|
||||||
const auto stride = image.bytesPerLine() / 4;
|
const auto stride = image.bytesPerLine() / 4;
|
||||||
const auto data = image.constBits();
|
const auto data = image.constBits();
|
||||||
uploadTexture(
|
uploadTexture(
|
||||||
GL_RGBA,
|
Ui::GL::kFormatRGBA,
|
||||||
GL_RGBA,
|
Ui::GL::kFormatRGBA,
|
||||||
image.size(),
|
image.size(),
|
||||||
_rgbaSize,
|
_rgbaSize,
|
||||||
stride,
|
stride,
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 9c552215ab54e5372ef54b1b324d0505a1b19315
|
Subproject commit ed6c2cb5414b74013d98a365211f68401d27a286
|
Loading…
Add table
Reference in a new issue