pub unsafe fn gl_make_current(&self, ctx: &GLContext) -> Result<(), String> {
    let out = SDL_GL_MakeCurrent(self.ptr, ctx.ctx);
    if out == 0 {
      Ok(())
    } else {
      Err(get_error())
    }
  }
/// Makes the given context the current context in this window.
Makes the given context the current context in this window.
Makes the given context the current context in this window .
pub unsafe fn gl_make_current(&self, ctx: &GLContext) -> Result<(), String> {
    let out = SDL_GL_MakeCurrent(self.ptr, ctx.ctx);
    if out == 0 {
      Ok(())
    } else {
      Err(get_error())
    }
  }
pub unsafe fn gl_make_current ( & self , ctx : & GLContext ) -> Result < ( ) , String > { let out = SDL_GL_MakeCurrent ( self . ptr , ctx . ctx ) ; if out == 0 { Ok ( ( ) ) } else { Err ( get_error ( ) ) } }
Makes the given context the current context in this window.
Makes the given context the current context in this window .
&self
ctx
&GLContext
&self
ctx
&GLContext