I was doing the tutorials for SFML on using OpenGl and I encountered this very strange problem. In my code the drawing of the cube works fine but it resizes after my mouse. If I have my mouse in the top left corner the cube is resized to almost nothing and if I have my mouse at the bottom right it draws the cube correctly(full size). img832.imageshack.us/img832/440/sfmlprob.png
著作正确无误(教学法):。
http://pastebin.com/8ja0Qpkb'rel=“nofollow”http://pastebin.com/8ja0Qpkb。
If I copy all the code from the tutorial into my own code it works correctly(does not resize) so there should be some difference in the code but I ve looked over and over again and can t find anything that should resize the cube.