When I resize the window so that it slightly clips the square a diagonal line appears from the bottom left to the top right of the square. This only happens on my laptop which runs on XP, but works fine on my desktop which runs vista. Does this have to do with my drivers or something?
To put it bluntly, the XP implementation of OpenGL sucks. You’ve probably stumbled upon a bug. The only possible solution I can think of is to split your rectangle into two triangles.
I’m confused, what implementation of OpenGL on XP sucks?? There isn’t one, there a driver for each card, and they implement OpenGL. There may be software implementations on certain OS’s, but that’s a different story. If you are hitting some part of the GL that the software backup is being used, it’s going to run badly, so this seems like a driver bug to me.
I may be stating it wrong. Everything I’ve read states that Microsoft basically forces all GL calls to be wrapped by calls to DirectX in XP or something like that. My personal experience is that GL is faster and more stable on Vista.
MarkS, that is certainly not the case. If your card does not have a native OpenGL driver there have been wrappers based upon direct X, but they have been pretty bad. A card with native OpenGL support does not have to go through DirectX, this includes nVidia, ATi, Intel parts, etc…