File tree Expand file tree Collapse file tree
src/main/java/com/falsepattern/rple/internal Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929import com .ventooth .swansong .pbr .PBRTextureEngine ;
3030import cpw .mods .fml .relauncher .Side ;
3131import cpw .mods .fml .relauncher .SideOnly ;
32+
33+ import com .ventooth .swansong .shader .ShaderEngine ;
3234import lombok .experimental .UtilityClass ;
3335import lombok .var ;
3436import makamys .neodymium .Neodymium ;
@@ -84,7 +86,11 @@ public static boolean neodymiumActive() {
8486
8587 @ SideOnly (Side .CLIENT )
8688 public static boolean shadersEnabled () {
87- return IS_SWANSONG_PRESENT ;
89+ if (IS_SWANSONG_PRESENT ) {
90+ return SwanSongCompat .initialized ();
91+ } else {
92+ return false ;
93+ }
8894 }
8995
9096 @ SideOnly (Side .CLIENT )
@@ -104,5 +110,9 @@ private static class SwanSongCompat {
104110 public static void isDefaultTexUnit (boolean toggle ) {
105111 PBRTextureEngine .isDefaultTexUnit (toggle );
106112 }
113+
114+ public static boolean initialized () {
115+ return ShaderEngine .isInitialized ();
116+ }
107117 }
108118}
You can’t perform that action at this time.
0 commit comments