|
|
@@ -69,9 +69,6 @@ static const char* lightingModeNames[] =
|
|
|
0
|
|
|
};
|
|
|
|
|
|
-static bool desktopSupportChecked = false;
|
|
|
-static bool desktopSupportResult = false;
|
|
|
-
|
|
|
Pass::Pass(StringHash type) :
|
|
|
type_(type),
|
|
|
blendMode_(BLEND_REPLACE),
|
|
|
@@ -173,14 +170,11 @@ Technique::Technique(Context* context) :
|
|
|
Graphics* graphics = GetSubsystem<Graphics>();
|
|
|
sm3Support_ = graphics ? graphics->GetSM3Support() : true;
|
|
|
|
|
|
- if (!desktopSupportChecked)
|
|
|
- {
|
|
|
- String platformString = GetPlatform();
|
|
|
- desktopSupportResult = (platformString == "Windows" || platformString == "Mac OS X" || platformString == "Linux");
|
|
|
- desktopSupportChecked = true;
|
|
|
- }
|
|
|
-
|
|
|
- desktopSupport_ = desktopSupportResult;
|
|
|
+ #ifdef DESKTOP_GRAPHICS
|
|
|
+ desktopSupport_ = true;
|
|
|
+ #else
|
|
|
+ desktopSupport_ = false;
|
|
|
+ #endif
|
|
|
}
|
|
|
|
|
|
Technique::~Technique()
|