X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fglsl%2Ffeatures.cpp;h=943f3b06fb8080b04defa5f807219b32ab404f4c;hp=78233bfcf48a3ff884bac0344b464c3e7ca17a33;hb=38712d8ecc57d043a2419ffbaeeb57f7a6586f14;hpb=8e553af57b712051f47293c971671f4f6a939be2 diff --git a/source/glsl/features.cpp b/source/glsl/features.cpp index 78233bfc..943f3b06 100644 --- a/source/glsl/features.cpp +++ b/source/glsl/features.cpp @@ -4,25 +4,10 @@ namespace Msp { namespace GL { namespace SL { -Features::Features(): - gl_api(OPENGL), - arb_enhanced_layouts(false), - arb_explicit_attrib_location(false), - arb_explicit_uniform_location(false), - arb_gpu_shader5(false), - arb_separate_shader_objects(false), - arb_uniform_buffer_object(false), - ext_gpu_shader4(false), - ext_texture_array(false), - constant_id_range(0x80000000U), - uniform_binding_range(84), - texture_binding_range(96) -{ } - Features Features::from_version(const Version &ver) { Features features; - features.gl_api = OPENGL; + features.target_api = OPENGL; features.glsl_version = ver; features.arb_enhanced_layouts = (ver>=Version(4, 40)); features.arb_explicit_attrib_location = (ver>=Version(1, 30));