1
0
Fork 0
forked from wry/wry

all: fix new compiler warnings

This commit is contained in:
Julian Orth 2022-05-27 16:03:30 +02:00
parent c0afc5cf2a
commit 64416d417b
3 changed files with 3 additions and 6 deletions

View file

@ -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);