forked from mia/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
2 changed files with 0 additions and 12 deletions
|
@ -258,11 +258,7 @@ void VideoContext::SetVideo(const wxString &filename) {
|
||||||
grid->CommitChanges(true);
|
grid->CommitChanges(true);
|
||||||
|
|
||||||
// Set GL context
|
// Set GL context
|
||||||
#ifdef __WXMAC__
|
|
||||||
GetGLContext(displayList.front())->SetCurrent();
|
|
||||||
#else
|
|
||||||
GetGLContext(displayList.front())->SetCurrent(*displayList.front());
|
GetGLContext(displayList.front())->SetCurrent(*displayList.front());
|
||||||
#endif
|
|
||||||
|
|
||||||
// Choose a provider
|
// Choose a provider
|
||||||
provider = VideoProviderFactoryManager::GetProvider(filename);
|
provider = VideoProviderFactoryManager::GetProvider(filename);
|
||||||
|
@ -554,11 +550,7 @@ GLuint VideoContext::GetFrameAsTexture(int n) {
|
||||||
lastFrame = n;
|
lastFrame = n;
|
||||||
|
|
||||||
// Set context
|
// Set context
|
||||||
#ifdef __APPLE__
|
|
||||||
GetGLContext(displayList.front())->SetCurrent();
|
|
||||||
#else
|
|
||||||
GetGLContext(displayList.front())->SetCurrent(*displayList.front());
|
GetGLContext(displayList.front())->SetCurrent(*displayList.front());
|
||||||
#endif
|
|
||||||
glEnable(GL_TEXTURE_2D);
|
glEnable(GL_TEXTURE_2D);
|
||||||
if (glGetError() != 0) throw _T("Error enabling texture.");
|
if (glGetError() != 0) throw _T("Error enabling texture.");
|
||||||
|
|
||||||
|
|
|
@ -206,11 +206,7 @@ try {
|
||||||
|
|
||||||
// Set GL context
|
// Set GL context
|
||||||
//wxMutexLocker glLock(OpenGLWrapper::glMutex);
|
//wxMutexLocker glLock(OpenGLWrapper::glMutex);
|
||||||
#ifdef __WXMAC__
|
|
||||||
SetCurrent();
|
|
||||||
#else
|
|
||||||
SetCurrent(*context->GetGLContext(this));
|
SetCurrent(*context->GetGLContext(this));
|
||||||
#endif
|
|
||||||
|
|
||||||
// Get sizes
|
// Get sizes
|
||||||
int w,h,sw,sh,pw,ph;
|
int w,h,sw,sh,pw,ph;
|
||||||
|
|
Loading…
Reference in a new issue