Skip to content

Commit

Permalink
Windows: Fix regression introduced in external texture pixel format (f…
Browse files Browse the repository at this point in the history
  • Loading branch information
jnschulze authored May 7, 2022
1 parent aa80520 commit b89e093
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shell/platform/windows/external_texture_d3d.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion shell/platform/windows/external_texture_pixelbuffer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b89e093

Please sign in to comment.