]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/features.cpp
Process loop initialization outside the body in UnusedVariableRemover
[libs/gl.git] / source / glsl / features.cpp
index a66eefc5ad18bb6271a9086b245697bb8b6632d0..eff7dd8d7e1869547e70d04627607c91004db8bf 100644 (file)
@@ -4,22 +4,7 @@ namespace Msp {
 namespace GL {
 namespace SL {
 
-Features::Features():
-       target_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::from_opengl_version(const Version &ver)
 {
        Features features;
        features.target_api = OPENGL;
@@ -39,9 +24,9 @@ Features Features::from_version(const Version &ver)
        return features;
 }
 
-Features Features::latest()
+Features Features::opengl_latest()
 {
-       return from_version(Version(4, 60));
+       return from_opengl_version(Version(4, 60));
 }
 
 } // namespace SL