Shading problem? (pyglet-problem?, my problem?)

Hello

This is my first try with OpenGL, so maybe i’m just missunderstanding something…

I’ve managed to draw a Sphere as indexed vertices in pyglet. I also provide normals. Evething looks fine, except in glShadeModel(GL_FLAT)-mode the shading is wrong :frowning:

Anyone knows, what i’m doing wrong?

Greetings, h2obrain

Edit:
I think pyglet uses OpenGL 2.1

With glShadeModel(GL_SMOOTH) it looks ok i think

oke… my sphere-drawing-function was buggy