Added handling for dirty box.
Added support for GL 3.2 core profile.