mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-07-16 13:14:51 -04:00
Misc intermediate fixes, more work on these to follow.
--Bug fixes: -Fix crash when using smooth interpolation in EmberGenome. -Print error and exit EmberGenome when sequencing if times are not sorted. --Code changes: -Another attempt at Singleton. This reverts the design to what it was before with a fix to the code that was causing it not to behave like a singleton should.
This commit is contained in:
@ -17,7 +17,7 @@ namespace EmberCLns
|
||||
/// This class derives from EmberReport, so the caller is able
|
||||
/// to retrieve a text dump of error information if any errors occur.
|
||||
/// </summary>
|
||||
class EMBERCL_API OpenCLInfo : public EmberReport
|
||||
class EMBERCL_API OpenCLInfo : public EmberReport, public Singleton<OpenCLInfo>
|
||||
{
|
||||
public:
|
||||
const vector<cl::Platform>& Platforms() const;
|
||||
@ -54,9 +54,10 @@ public:
|
||||
return val;
|
||||
}
|
||||
|
||||
SINGLETON_INSTANCE_DECL(OpenCLInfo);
|
||||
SINGLETON_DERIVED_IMPL(OpenCLInfo);
|
||||
|
||||
private:
|
||||
|
||||
OpenCLInfo();
|
||||
|
||||
bool m_Init;
|
||||
|
Reference in New Issue
Block a user