Initialize variable before calling glGetIntegerV, apparantly on windows it needs it.