mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Auto merge of #21781 - servo:jdm-patch-31, r=nox
webgl: Restore active texture if it's changed while deleting a texture. <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21781) <!-- Reviewable:end -->
This commit is contained in:
commit
cc53ec805d
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.
|
||||
if active_unit_enum == self.textures.active_unit_enum() {
|
||||
if active_unit_enum != self.textures.active_unit_enum() {
|
||||
self.send_command(WebGLCommand::ActiveTexture(
|
||||
self.textures.active_unit_enum(),
|
||||
));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue