This behaviour you get is not part of the way OpenGL behaves. You have a bug (or oversight/omission) in your own code that's causing it, and without seeing your code it's impossible to even guess what that bug/oversight/omission might be.