We only really require GLX 1.3. Also fixed version check to be more appropriate.
Merge branch 'master' of https://github.com/jp9000/obs-studio
Implement output, improve video/audio subsystems

 - Fill in the rest of the FFmpeg test output code for testing so it
   actually properly outputs data.

 - Improve the main video subsystem to be a bit more optimal and
   automatically output I420 or NV12 if needed.

 - Fix audio subsystem insertation and byte calculation.  Now it will
   seamlessly insert new audio data in to the audio stream based upon
   its timestamp value.  (Be extremely cautious when using floating
   point calculations for important things like this, and always round
   your values and check your values)

 - Use 32 byte alignment in case of future optimizations and export a
   function to get the current alignment.

 - Make os_sleepto_ns return true if slept, false if the time has
   already been passed before the call.

 - Fix sinewave output so that it actually properly calculates a middle
   C sinewave.

 - Change the use of row_bytes to linesize (also makes it a bit more
   consistent with FFmpeg's naming as well)
Fix texture_setimage

Was mapping the data without unmapping the data, causing the data to
become locked
Use force inlining of YUV conversion functions

Force inling of the 444->420 conversion functions because their CPU
usage goes up pretty heavily without it when compiling without
optimizations
Fix UTF-8 signature detection

The signature detection code when reading UTF-8 files was causing the
UTF-8 strings read from file to allocate more data than they were
supposed to, causing the last 3 bytes to be garbage
Fix FORCE_INLINE macro

Accidentally put the code within a _MSC_VER #ifdef, causing the macro to
not be found on non-VC compilers
Fix __attribute__ usage

Requires two sets of parentheses, not one.  ...I think
Fix a couple of warnings
Implement FBO blit texture copy

This trick uses FBOs to allow for copying textures without the need for
special texture copy functions.
Use bzalloc instead of bmalloc then memset

Reduces needless code repetition and still allows for proper memory
alignment.  Cleans up the code a bit.
Updated cmake files for ffmpeg plugin

Also, fixed an enum name issue.  No clue why visual
studio actually compiled that without warnings/errors
Do test recording to a specified file

It will now output to a a filename that you specify when you click the
record button.  This is just for testing.
Use AVI instead of MP4 for testing

The codecs used for AVI seem to have less of an impact than the MP4
codecs at the moment.
Fix memory leak in OSX test code
Align output width to 16 byte alignment

The 444->420 conversion function will crash if you don't align the
output width to a 16 byte boundry.
I shouldn't have committed before compiling

Note to self - compile before committing.
Move alignment code to obs_reset_video

It wasn't properly being set for the graphics textures as well, so it
would end up causing SSE to crash due to alignment