Fixed local declaration of IOSurfaceRef.

IOSrufaceRef is declared as "typedef struct __IOSurface *" in latest OS
X SDK in IOSurface.framework/IOSurfaceAPI.h, line 17.

Regal's declaration of IOSurfaceRef as a void * results in a compile
error on OS X / Xcode when both Regal and IOSurface headers are
included.
Merge pull request #6 from p3/master

update from latest upstream
Merge branch 'master' of git://github.com/sherief/regal
Extend Regal::Config to have a configFile setting for read/write JSON configuration.
Also can be specified via REGAL_CONFIG_FILE environment variable.
Initial migration of Regal::Json::Output to boost::print::json::output
Update GLEW to sf/github TOT.
Merge pull request #7 from p3/master

pull latest upstream code
Force uniform update on first use.

In most new programs "ver" is updated through UpdateMatrixVer().
However, when that does not happen a program may end up being
unusable as uniforms are not set correctly.
Add variable to force Desktop GLSL version.

We use this for testing: to run Regal in ES2 mode with GLX.
Merge https://github.com/igor-c/regal glx
Regal::DispatchCode refinements.
Regal::Enum wrapped as struct.
Initialize dbgLogLen before calling glGetProgramInfoLog.

Crash on PPAPI if call glGetProgramInfoLog() with an uninitialized params.
Regal::helper::getInfoLog for accessing various GL info logs.
Add regaltest test coverage for Regal::helper::size::get
Eliminate global/static data in RegalIff.cpp
GL_VERSION_1_2 enums that GLEW missed out on: GL_MAX_ELEMENTS_VERTICES, GL_MAX_ELEMENTS_INDICES
Add GL_SGIS_detail_texture enums to gl.py
Add GL_ARB_viewport_array enums to gl.py
Regal::Config string variables for code generation dispatch layers.
For RegalDispatchCode - name shader and program return variables, rather than generic o output.
Add extra cast through void* to avoid -Wcast-align warning
Fixups for glShaderSource support in RegalDispatchCode
RegalJson for parsing Config and Logging state from JSON
Added RegalConfigure Regal API
Refresh VC and XCode projects
Regal builds need jsonsl library now
Add Mutex and ScopedLock classes for threading purposes
CGL API fixups
GL const parameter fixups
LONG and ULONG_PTR for Windows
Add Logging::process option to log process ID
Avoid glGetAttachedShaders in RegalDispatchLog unless driver logging is actually specifically enabled.
For RegalDispatchCode log the texture data to the header rather than source.
Fix warnings
Build and run tests on NaCl
Merge branch 'test_on_nacl' of https://github.com/sbc100/regal
Add enums for GL_HP_image_transform
Add enums for GL_SGIX_fragment_specular_lighting
Runtime flag for thread locking - work in progress
Platform notes for NaCl builds
Disable extra logging diagnostics for REGAL_SYS_PPAPI=1, for performance reasons
Refresh GLEW with DSA workaround - ignore fp64 stuff.