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.
This commit is contained in:
@@ -70,7 +70,8 @@ void main()
|
||||
|
||||
#if __VERSION__ < 140
|
||||
#extension GL_ARB_uniform_buffer_object: require
|
||||
#extension GL_ARB_texture_buffer_object: require
|
||||
#extension GL_ARB_texture_buffer_object: enable
|
||||
#extension GL_EXT_texture_buffer_object: enable
|
||||
#endif
|
||||
|
||||
uniform mat4 modelViewMatrix;
|
||||
|
||||
Reference in New Issue
Block a user