Added OpenGL error checks
Window resizing finally. Also fixed some opengl errors
Merge remote-tracking branch 'tom/master'
Added getDebugText, inspects all parameters for unit and prints them. Use by pressing left control when selecting.