Mistake in OpenGLView:drawRect

I rewrite an old project since OpenGL is deprecated and the downgrade to High Sierra goes with the lost of the old project. Here is the drawRect:

- (void)drawRect:(NSRect)dirtyRect
{
    [super drawRect:dirtyRect];
    if(backgroundColor == 1) glClearColor(0.95f, 1.0, 1.0f, 1.0);
    else  glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
    glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
    glLoadIdentity();
    glTranslatef(0.0 ,0.0, -10.0);

    // After mistake 
    I wrote PushMatrix() 
    glTranslatef(-0.01 ,-0.01, -10.0); // Screen Shot 0
    // glTranslatef(-0.25 ,-0.25, -10.0); Screen Shot 1
    glLineWidth(1.0);

    glRotated(rotationX, 1, 0, 0);
    glRotated(rotationY, 0, 1, 0);
    glCallList(axes);
   // After mistake 
    I wrote PopMatrix() 

    // Axes Vertices of xx,y,z are 1.0
    // With vertices +/-0.99 nothing is drawn

    [self glError];
    [self.openGLContext flushBuffer];
}

I hope you Accept my Text and hope you can help me ! Mit freundlichen Grüßen Uwe

Screen Shot 0

Screen Shot 1

I solved the problem, in reshape I changed glOrtho() to glfrustum(). I'm happy.

Mistake in OpenGLView:drawRect
 
 
Q