mirror of https://github.com/odrling/Aegisub
This should fix Mac builds failing on GL stuff.
Originally committed to SVN as r3396.
This commit is contained in:
parent
09e27f5df3
commit
2a7e42c6a5
|
@ -258,11 +258,7 @@ void VideoContext::SetVideo(const wxString &filename) {
|
|||
grid->CommitChanges(true);
|
||||
|
||||
// Set GL context
|
||||
#ifdef __WXMAC__
|
||||
GetGLContext(displayList.front())->SetCurrent();
|
||||
#else
|
||||
GetGLContext(displayList.front())->SetCurrent(*displayList.front());
|
||||
#endif
|
||||
|
||||
// Choose a provider
|
||||
provider = VideoProviderFactoryManager::GetProvider(filename);
|
||||
|
@ -554,11 +550,7 @@ GLuint VideoContext::GetFrameAsTexture(int n) {
|
|||
lastFrame = n;
|
||||
|
||||
// Set context
|
||||
#ifdef __APPLE__
|
||||
GetGLContext(displayList.front())->SetCurrent();
|
||||
#else
|
||||
GetGLContext(displayList.front())->SetCurrent(*displayList.front());
|
||||
#endif
|
||||
glEnable(GL_TEXTURE_2D);
|
||||
if (glGetError() != 0) throw _T("Error enabling texture.");
|
||||
|
||||
|
|
|
@ -206,11 +206,7 @@ try {
|
|||
|
||||
// Set GL context
|
||||
//wxMutexLocker glLock(OpenGLWrapper::glMutex);
|
||||
#ifdef __WXMAC__
|
||||
SetCurrent();
|
||||
#else
|
||||
SetCurrent(*context->GetGLContext(this));
|
||||
#endif
|
||||
|
||||
// Get sizes
|
||||
int w,h,sw,sh,pw,ph;
|
||||
|
|
Loading…
Reference in New Issue