mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
webgl: Don't forget update WebGL's texture binding on unbind.
This doesn't appear to fix any testcases, but I noticed it when fixing renderbuffers.
This commit is contained in:
parent
2d66840145
commit
b2c169274a
1 changed files with 1 additions and 0 deletions
|
@ -776,6 +776,7 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext {
|
|||
Err(err) => return self.webgl_error(err),
|
||||
}
|
||||
} else {
|
||||
slot.set(None);
|
||||
// Unbind the currently bound texture
|
||||
self.ipc_renderer
|
||||
.send(CanvasMsg::WebGL(WebGLCommand::BindTexture(target, None)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue