How to check OpenGL Version? The version is the same as if i install Windows?

Solution 1:

Your MacBook Pro has GPU support for OpenGL 3.3 when running Mavericks. That is according to this Apple article:

http://support.apple.com/kb/HT5942?viewlocale=en_US&locale=en_US

Installing Windows graphics drivers in OS X is not supported. Attempting to do so may render OS X unusable and is ill-advised.

Solution 2:

OpenGL 2.1 is Apple's legacy context. You need to request a core context for the system you intend to use, though, as you've discovered, XQuartz will only do legacy.

If you install Windows via Bootcamp & install the latest NVidia drivers for Windows, you will see the highest context your card can support, possibly 3.3 but may even be 4.2 [I don't have a Mac with NVidia to test, but my ATI HD 5770 can achieve 4.2 under Windows.]

This may be of assistance, even though it isn't marked as Answered - OpenGL 4.1(?) under Mavericks