OpenSubdiv: refine OpenGL version & extension checks
authorMike Erwin <significant.bit@gmail.com>
Sun, 6 Dec 2015 23:47:58 +0000 (18:47 -0500)
committerMike Erwin <significant.bit@gmail.com>
Sun, 6 Dec 2015 23:47:58 +0000 (18:47 -0500)
commita048d5f945be217c0c3e90cb716bf6bb7c267097
tree53958fec97a9d842f77247f0461ee7ab82a00640
parent50df05c35cca2f26f613f3d44dd3175852da2f78
OpenSubdiv: refine OpenGL version & extension checks

Use new GPU_legacy_support() function.

Determine GLSL version once instead of per shader.

For Texture Buffers, allow ARB or EXT version of the extension. Either
one will do.
intern/opensubdiv/gpu_shader_opensubd_display.glsl
intern/opensubdiv/opensubdiv_capi.cc
intern/opensubdiv/opensubdiv_capi.h
intern/opensubdiv/opensubdiv_gpu_capi.cc