Windows: Fix regression introduced in external texture pixel format (flutter/engine#33195)

This commit is contained in:
Niklas Schulze
2022-05-08 01:58:55 +02:00
committed by GitHub
parent 44f4277aec
commit 08b6b88e93
2 changed files with 2 additions and 2 deletions

View File

@@ -45,7 +45,7 @@ bool ExternalTextureD3d::PopulateTexture(size_t width,
// Populate the texture object used by the engine.
opengl_texture->target = GL_TEXTURE_2D;
opengl_texture->name = gl_texture_;
opengl_texture->format = GL_RGBA;
opengl_texture->format = GL_RGBA8_OES;
opengl_texture->destruction_callback = nullptr;
opengl_texture->user_data = nullptr;
opengl_texture->width = SAFE_ACCESS(descriptor, visible_width, 0);

View File

@@ -36,7 +36,7 @@ bool ExternalTexturePixelBuffer::PopulateTexture(
// Populate the texture object used by the engine.
opengl_texture->target = GL_TEXTURE_2D;
opengl_texture->name = state_->gl_texture;
opengl_texture->format = GL_RGBA;
opengl_texture->format = GL_RGBA8_OES;
opengl_texture->destruction_callback = nullptr;
opengl_texture->user_data = nullptr;
opengl_texture->width = width;