all: fix new compiler warnings
This commit is contained in:
parent
c0afc5cf2a
commit
64416d417b
3 changed files with 3 additions and 6 deletions
|
|
@ -68,7 +68,7 @@ impl GlTexture {
|
|||
|
||||
#[allow(dead_code)]
|
||||
pub unsafe fn to_framebuffer(self: &Rc<Self>) -> Result<Rc<GlFrameBuffer>, RenderError> {
|
||||
self.ctx.with_current(|| unsafe {
|
||||
self.ctx.with_current(|| {
|
||||
let mut fbo = 0;
|
||||
glGenFramebuffers(1, &mut fbo);
|
||||
glBindFramebuffer(GL_FRAMEBUFFER, fbo);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue