From 49fe9ab456551026e7b89daf681d358fe3890ded Mon Sep 17 00:00:00 2001 From: Loic Sharma Date: Tue, 30 Jul 2024 13:15:45 -0700 Subject: [PATCH] Use GL_RGBGA as backing store internal format --- shell/platform/windows/compositor_opengl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/platform/windows/compositor_opengl.cc b/shell/platform/windows/compositor_opengl.cc index 0b367dd740482..f668f611d4ba7 100644 --- a/shell/platform/windows/compositor_opengl.cc +++ b/shell/platform/windows/compositor_opengl.cc @@ -58,7 +58,7 @@ bool CompositorOpenGL::CreateBackingStore( gl_->TexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); gl_->TexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); gl_->TexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); - gl_->TexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, config.size.width, + gl_->TexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, config.size.width, config.size.height, 0, GL_RGBA, GL_UNSIGNED_BYTE, nullptr); gl_->BindTexture(GL_TEXTURE_2D, 0);