зеркало из https://github.com/mozilla/pjs.git
Bug 753854 - -[NSOpenGLPixelFormat initWithAttributes] should be passed a 0 terminated array. [r=joe]
This commit is contained in:
Родитель
18891dc7c0
Коммит
4f5be99420
|
@ -90,11 +90,11 @@ public:
|
|||
NSOpenGLPFAAccelerated,
|
||||
NSOpenGLPFAAllowOfflineRenderers,
|
||||
NSOpenGLPFADoubleBuffer,
|
||||
(NSOpenGLPixelFormatAttribute)nil
|
||||
0
|
||||
};
|
||||
|
||||
if (!gUseDoubleBufferedWindows) {
|
||||
attribs[2] = (NSOpenGLPixelFormatAttribute)nil;
|
||||
attribs[2] = 0;
|
||||
}
|
||||
|
||||
mPixelFormat = [[NSOpenGLPixelFormat alloc] initWithAttributes:attribs];
|
||||
|
|
Загрузка…
Ссылка в новой задаче