Windows: Fix regression introduced in external texture pixel format (flutter/engine#33195)
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user