mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
webgl: Restore active texture if it's changed while deleting a texture.
This commit is contained in:
parent
34385d90aa
commit
46f4b18722
1 changed files with 1 additions and 1 deletions
|
@ -2221,7 +2221,7 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Restore bound texture unit if it has been changed.
|
// Restore bound texture unit if it has been changed.
|
||||||
if active_unit_enum == self.textures.active_unit_enum() {
|
if active_unit_enum != self.textures.active_unit_enum() {
|
||||||
self.send_command(WebGLCommand::ActiveTexture(
|
self.send_command(WebGLCommand::ActiveTexture(
|
||||||
self.textures.active_unit_enum(),
|
self.textures.active_unit_enum(),
|
||||||
));
|
));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue