internal protected virtual void OnResized() { _aspect = (float)Width / Height; CalculateProjection(); _context.glViewport(0, 0, Width, Height); _context.glMatrixMode(GLMatrixMode.Projection); fixed(Matrix *p = &_projectionMatrix) _context.glLoadMatrix((float *)p); }