mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 01:37:53 -06:00
Removed tech ENABLE_HACK_CLOSING_ON_OSX_10_9_5
This commit is contained in:
parent
de77328320
commit
3f69336204
3 changed files with 61 additions and 51 deletions
|
@ -42,13 +42,15 @@
|
||||||
#define ENABLE_THUMBNAIL_GENERATOR_DEBUG (0 && ENABLE_THUMBNAIL_GENERATOR)
|
#define ENABLE_THUMBNAIL_GENERATOR_DEBUG (0 && ENABLE_THUMBNAIL_GENERATOR)
|
||||||
|
|
||||||
|
|
||||||
//==================
|
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||||
// 2.2.0.rc1 techs
|
////==================
|
||||||
//==================
|
//// 2.2.0.rc1 techs
|
||||||
#define ENABLE_2_2_0_RC1 1
|
////==================
|
||||||
|
//#define ENABLE_2_2_0_RC1 1
|
||||||
// Enable hack to remove crash when closing on OSX 10.9.5
|
//
|
||||||
#define ENABLE_HACK_CLOSING_ON_OSX_10_9_5 (1 && ENABLE_2_2_0_RC1)
|
//// Enable hack to remove crash when closing on OSX 10.9.5
|
||||||
|
//#define ENABLE_HACK_CLOSING_ON_OSX_10_9_5 (1 && ENABLE_2_2_0_RC1)
|
||||||
|
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||||
|
|
||||||
|
|
||||||
//==================
|
//==================
|
||||||
|
|
|
@ -19,10 +19,12 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
#if ENABLE_HACK_CLOSING_ON_OSX_10_9_5
|
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||||
// Part of temporary hack to remove crash when closing on OSX 10.9.5
|
//#if ENABLE_HACK_CLOSING_ON_OSX_10_9_5
|
||||||
#include <wx/platinfo.h>
|
//// Part of temporary hack to remove crash when closing on OSX 10.9.5
|
||||||
#endif // ENABLE_HACK_CLOSING_ON_OSX_10_9_5
|
//#include <wx/platinfo.h>
|
||||||
|
//#endif // ENABLE_HACK_CLOSING_ON_OSX_10_9_5
|
||||||
|
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
#include "../Utils/MacDarkMode.hpp"
|
#include "../Utils/MacDarkMode.hpp"
|
||||||
|
@ -211,11 +213,13 @@ GLCanvas3DManager::EMultisampleState GLCanvas3DManager::s_multisample = GLCanvas
|
||||||
GLCanvas3DManager::EFramebufferType GLCanvas3DManager::s_framebuffers_type = GLCanvas3DManager::FB_None;
|
GLCanvas3DManager::EFramebufferType GLCanvas3DManager::s_framebuffers_type = GLCanvas3DManager::FB_None;
|
||||||
#endif // ENABLE_NON_STATIC_CANVAS_MANAGER
|
#endif // ENABLE_NON_STATIC_CANVAS_MANAGER
|
||||||
|
|
||||||
#if ENABLE_HACK_CLOSING_ON_OSX_10_9_5
|
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||||
#ifdef __APPLE__
|
//#if ENABLE_HACK_CLOSING_ON_OSX_10_9_5
|
||||||
GLCanvas3DManager::OSInfo GLCanvas3DManager::s_os_info;
|
//#ifdef __APPLE__
|
||||||
#endif // __APPLE__
|
//GLCanvas3DManager::OSInfo GLCanvas3DManager::s_os_info;
|
||||||
#endif // ENABLE_HACK_CLOSING_ON_OSX_10_9_5
|
//#endif // __APPLE__
|
||||||
|
//#endif // ENABLE_HACK_CLOSING_ON_OSX_10_9_5
|
||||||
|
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||||
|
|
||||||
#if !ENABLE_NON_STATIC_CANVAS_MANAGER
|
#if !ENABLE_NON_STATIC_CANVAS_MANAGER
|
||||||
GLCanvas3DManager::GLCanvas3DManager()
|
GLCanvas3DManager::GLCanvas3DManager()
|
||||||
|
@ -256,14 +260,16 @@ bool GLCanvas3DManager::add(wxGLCanvas* canvas, Bed3D& bed, Camera& camera, GLTo
|
||||||
if (m_context == nullptr)
|
if (m_context == nullptr)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
#if ENABLE_HACK_CLOSING_ON_OSX_10_9_5
|
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||||
#ifdef __APPLE__
|
//#if ENABLE_HACK_CLOSING_ON_OSX_10_9_5
|
||||||
// Part of temporary hack to remove crash when closing on OSX 10.9.5
|
//#ifdef __APPLE__
|
||||||
s_os_info.major = wxPlatformInfo::Get().GetOSMajorVersion();
|
// // Part of temporary hack to remove crash when closing on OSX 10.9.5
|
||||||
s_os_info.minor = wxPlatformInfo::Get().GetOSMinorVersion();
|
// s_os_info.major = wxPlatformInfo::Get().GetOSMajorVersion();
|
||||||
s_os_info.micro = wxPlatformInfo::Get().GetOSMicroVersion();
|
// s_os_info.minor = wxPlatformInfo::Get().GetOSMinorVersion();
|
||||||
#endif //__APPLE__
|
// s_os_info.micro = wxPlatformInfo::Get().GetOSMicroVersion();
|
||||||
#endif // ENABLE_HACK_CLOSING_ON_OSX_10_9_5
|
//#endif //__APPLE__
|
||||||
|
//#endif // ENABLE_HACK_CLOSING_ON_OSX_10_9_5
|
||||||
|
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||||
}
|
}
|
||||||
|
|
||||||
canvas3D->set_context(m_context);
|
canvas3D->set_context(m_context);
|
||||||
|
@ -383,14 +389,16 @@ void GLCanvas3DManager::destroy()
|
||||||
{
|
{
|
||||||
if (m_context != nullptr)
|
if (m_context != nullptr)
|
||||||
{
|
{
|
||||||
#if ENABLE_HACK_CLOSING_ON_OSX_10_9_5
|
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||||
#ifdef __APPLE__
|
//#if ENABLE_HACK_CLOSING_ON_OSX_10_9_5
|
||||||
// this is a temporary ugly hack to solve the crash happening when closing the application on OSX 10.9.5
|
//#ifdef __APPLE__
|
||||||
// the crash is inside wxGLContext destructor
|
// // this is a temporary ugly hack to solve the crash happening when closing the application on OSX 10.9.5
|
||||||
if (s_os_info.major == 10 && s_os_info.minor == 9 && s_os_info.micro == 5)
|
// // the crash is inside wxGLContext destructor
|
||||||
return;
|
// if (s_os_info.major == 10 && s_os_info.minor == 9 && s_os_info.micro == 5)
|
||||||
#endif //__APPLE__
|
// return;
|
||||||
#endif // ENABLE_HACK_CLOSING_ON_OSX_10_9_5
|
//#endif //__APPLE__
|
||||||
|
//#endif // ENABLE_HACK_CLOSING_ON_OSX_10_9_5
|
||||||
|
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||||
|
|
||||||
delete m_context;
|
delete m_context;
|
||||||
m_context = nullptr;
|
m_context = nullptr;
|
||||||
|
|
|
@ -94,16 +94,18 @@ public:
|
||||||
void detect() const;
|
void detect() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
#if ENABLE_HACK_CLOSING_ON_OSX_10_9_5
|
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||||
#ifdef __APPLE__
|
//#if ENABLE_HACK_CLOSING_ON_OSX_10_9_5
|
||||||
struct OSInfo
|
//#ifdef __APPLE__
|
||||||
{
|
// struct OSInfo
|
||||||
int major{ 0 };
|
// {
|
||||||
int minor{ 0 };
|
// int major{ 0 };
|
||||||
int micro{ 0 };
|
// int minor{ 0 };
|
||||||
};
|
// int micro{ 0 };
|
||||||
#endif //__APPLE__
|
// };
|
||||||
#endif // ENABLE_HACK_CLOSING_ON_OSX_10_9_5
|
//#endif //__APPLE__
|
||||||
|
//#endif // ENABLE_HACK_CLOSING_ON_OSX_10_9_5
|
||||||
|
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||||
|
|
||||||
private:
|
private:
|
||||||
#if ENABLE_NON_STATIC_CANVAS_MANAGER
|
#if ENABLE_NON_STATIC_CANVAS_MANAGER
|
||||||
|
@ -129,15 +131,13 @@ private:
|
||||||
wxGLContext* m_context{ nullptr };
|
wxGLContext* m_context{ nullptr };
|
||||||
#else
|
#else
|
||||||
wxGLContext* m_context;
|
wxGLContext* m_context;
|
||||||
<<<<<<< HEAD
|
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||||
=======
|
//#if ENABLE_HACK_CLOSING_ON_OSX_10_9_5
|
||||||
static GLInfo s_gl_info;
|
//#ifdef __APPLE__
|
||||||
#if ENABLE_HACK_CLOSING_ON_OSX_10_9_5
|
// static OSInfo s_os_info;
|
||||||
#ifdef __APPLE__
|
//#endif //__APPLE__
|
||||||
static OSInfo s_os_info;
|
//#endif // ENABLE_HACK_CLOSING_ON_OSX_10_9_5
|
||||||
#endif //__APPLE__
|
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||||
#endif // ENABLE_HACK_CLOSING_ON_OSX_10_9_5
|
|
||||||
>>>>>>> 11bd62a3e6887741701eb908e0fd0cc0b6afb576
|
|
||||||
bool m_gl_initialized;
|
bool m_gl_initialized;
|
||||||
CanvasesMap m_canvases;
|
CanvasesMap m_canvases;
|
||||||
#endif // ENABLE_NON_STATIC_CANVAS_MANAGER
|
#endif // ENABLE_NON_STATIC_CANVAS_MANAGER
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue