]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/features.cpp
Use default member initializers for simple types
[libs/gl.git] / source / glsl / features.cpp
index 78233bfcf48a3ff884bac0344b464c3e7ca17a33..943f3b06fb8080b04defa5f807219b32ab404f4c 100644 (file)
@@ -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));