]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/compiler.cpp
Require passing features to SL::Compiler constructor
[libs/gl.git] / source / glsl / compiler.cpp
index e658a79ea98c2adc7c469b092f43ca84da9db161..3f25935064beafe5c0fbecd86bcf4dae40eaa16c 100644 (file)
@@ -4,7 +4,6 @@
 #include "builtin.h"
 #include "compiler.h"
 #include "debug.h"
-#include "deviceinfo.h"
 #include "error.h"
 #include "finalize.h"
 #include "generate.h"
@@ -24,10 +23,6 @@ namespace Msp {
 namespace GL {
 namespace SL {
 
-Compiler::Compiler():
-       features(DeviceInfo::get_global().glsl_features)
-{ }
-
 Compiler::Compiler(const Features &f):
        features(f)
 { }
@@ -396,7 +391,8 @@ void Compiler::finalize(Stage &stage, Mode mode)
 {
        if(mode==PROGRAM)
        {
-               LegacyConverter().apply(stage, features);
+               StructuralFeatureConverter().apply(stage, features);
+               QualifierConverter().apply(stage, features);
                resolve(stage, RESOLVE_VARIABLES|RESOLVE_FUNCTIONS);
                PrecisionConverter().apply(stage);
        }