Merge pull request #167 from toolness/pathfinder-unity-fun

Add GLDevice::set_default_framebuffer()
This commit is contained in:
Patrick Walton 2019-05-27 11:28:33 -07:00 committed by GitHub
commit 4327d75058
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -42,6 +42,10 @@ impl GLDevice {
}
}
pub fn set_default_framebuffer(&mut self, framebuffer: GLuint) {
self.default_framebuffer = framebuffer;
}
fn set_texture_parameters(&self, texture: &GLTexture) {
self.bind_texture(texture, 0);
unsafe {