Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_ContextSDL.cpp
| Show First 20 Lines • Show All 132 Lines • ▼ Show 20 Lines | #endif | ||||
| if (m_context != nullptr) { | if (m_context != nullptr) { | ||||
| if (!s_sharedContext) { | if (!s_sharedContext) { | ||||
| s_sharedContext = m_context; | s_sharedContext = m_context; | ||||
| } | } | ||||
| s_sharedCount++; | s_sharedCount++; | ||||
| success = (SDL_GL_MakeCurrent(m_window, m_context) < 0) ? GHOST_kFailure : GHOST_kSuccess; | success = (SDL_GL_MakeCurrent(m_window, m_context) < 0) ? GHOST_kFailure : GHOST_kSuccess; | ||||
| initContextGLEW(); | |||||
| initClearGL(); | initClearGL(); | ||||
| SDL_GL_SwapWindow(m_window); | SDL_GL_SwapWindow(m_window); | ||||
| success = GHOST_kSuccess; | success = GHOST_kSuccess; | ||||
| } | } | ||||
| else { | else { | ||||
| success = GHOST_kFailure; | success = GHOST_kFailure; | ||||
| } | } | ||||
| Show All 24 Lines | |||||