diff --git a/include/Spectre/Window/GLContext.h b/include/Spectre/Window/GLContext.h index 4a08b93..e3bb423 100644 --- a/include/Spectre/Window/GLContext.h +++ b/include/Spectre/Window/GLContext.h @@ -13,8 +13,6 @@ class PlatformWindow; class GLContext { public : - static GLContext* create(); - virtual ~GLContext(); // Create a GLContext for this perticular window. diff --git a/source/Window/GLContext.cpp b/source/Window/GLContext.cpp index 7d9cb84..95d538e 100644 --- a/source/Window/GLContext.cpp +++ b/source/Window/GLContext.cpp @@ -1,23 +1,7 @@ - #include -#ifdef SPECTRE_PLATFORM_WIN -#include -typedef sp::Win32GLContext ContextType; -#elif SPECTRE_PLATFORM_UNIX -#include -typedef sp::GLXContext ContextType; -#else -#error "No GLContext implementation exists" -#endif - namespace sp { -GLContext* GLContext::create() -{ - return new ContextType(); -} - GLContext::~GLContext() { // Nothing to do.