Fix Windows external texture interference (flutter/engine#25193)

This commit is contained in:
Niklas Schulze
2021-03-29 22:48:35 +02:00
committed by GitHub
parent 9e998739bb
commit eff2763bd5

View File

@@ -125,6 +125,7 @@ bool ExternalTextureGL::CopyPixelBuffer(size_t& width, size_t& height) {
gl.glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, pixel_buffer->width,
pixel_buffer->height, 0, GL_RGBA, GL_UNSIGNED_BYTE,
pixel_buffer->buffer);
gl.glBindTexture(GL_TEXTURE_2D, 0);
return true;
}