Bug 682327 - ASSERTION: Failed to make GL context current; r=ajuma

This commit is contained in:
Oleg Romashin 2011-08-27 00:23:02 +01:00
Родитель 97da6bec7d
Коммит 4a774b6f11
1 изменённых файлов: 6 добавлений и 5 удалений

Просмотреть файл

@ -782,13 +782,14 @@ public:
// Assume that EGL has the same problem as WGL does,
// where MakeCurrent with an already-current context is
// still expensive.
if (!mSurface || aForce || sEGLLibrary.fGetCurrentContext() != mContext) {
#ifndef MOZ_WIDGET_QT
if (!mSurface) {
EGLConfig config = CreateConfig();
mSurface = CreateSurfaceForWindow(NULL, config);
}
if (!mSurface) {
EGLConfig config = CreateConfig();
mSurface = CreateSurfaceForWindow(NULL, config);
aForce = PR_TRUE;
}
#endif
if (aForce || sEGLLibrary.fGetCurrentContext() != mContext) {
succeeded = sEGLLibrary.fMakeCurrent(EGL_DISPLAY(),
mSurface, mSurface,
mContext);