X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fglsl%2Fcompatibility.cpp;h=692db972b56491eca5de797ae0f79bec61995754;hp=f12a46e384cf6c451b05125048ba89ffd38fe733;hb=05597fbb3671dfed4776bc5223958c85e780345e;hpb=87f7273a6a7979d07d954de601cb826f97d2e447 diff --git a/source/glsl/compatibility.cpp b/source/glsl/compatibility.cpp index f12a46e3..692db972 100644 --- a/source/glsl/compatibility.cpp +++ b/source/glsl/compatibility.cpp @@ -20,7 +20,7 @@ DefaultPrecisionGenerator::DefaultPrecisionGenerator(): void DefaultPrecisionGenerator::apply(Stage &stage) { - SetForScope set_stage(stage_type, stage.type); + stage_type = stage.type; visit(stage.content); } @@ -87,7 +87,7 @@ LegacyConverter::LegacyConverter(): void LegacyConverter::apply(Stage &s) { - SetForScope set_stage(stage, &s); + stage = &s; visit(s.content); }