Commit 4fba2995 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

winemac: Don't override -[NSOpenGLContext clearDrawable], just use our own method.

parent 5c8d6a0b
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
context attached). So, we finesse things by first setting the context's view to context attached). So, we finesse things by first setting the context's view to
a different view (the content view of an off-screen window) and then letting the a different view (the content view of an off-screen window) and then letting the
original implementation proceed. */ original implementation proceed. */
- (void) clearDrawable - (void) clearDrawableLeavingSurfaceOnScreen
{ {
static NSWindow* dummyWindow; static NSWindow* dummyWindow;
static dispatch_once_t once; static dispatch_once_t once;
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
}); });
[self setView:[dummyWindow contentView]]; [self setView:[dummyWindow contentView]];
[super clearDrawable]; [self clearDrawable];
} }
@end @end
...@@ -99,7 +99,7 @@ void macdrv_dispose_opengl_context(macdrv_opengl_context c) ...@@ -99,7 +99,7 @@ void macdrv_dispose_opengl_context(macdrv_opengl_context c)
macdrv_remove_view_opengl_context((macdrv_view)[context view], c); macdrv_remove_view_opengl_context((macdrv_view)[context view], c);
if ([context latentView]) if ([context latentView])
macdrv_remove_view_opengl_context((macdrv_view)[context latentView], c); macdrv_remove_view_opengl_context((macdrv_view)[context latentView], c);
[context clearDrawable]; [context clearDrawableLeavingSurfaceOnScreen];
[context release]; [context release];
[pool release]; [pool release];
...@@ -143,7 +143,7 @@ void macdrv_make_context_current(macdrv_opengl_context c, macdrv_view v) ...@@ -143,7 +143,7 @@ void macdrv_make_context_current(macdrv_opengl_context c, macdrv_view v)
else else
{ {
[WineOpenGLContext clearCurrentContext]; [WineOpenGLContext clearCurrentContext];
[context clearDrawable]; [context clearDrawableLeavingSurfaceOnScreen];
} }
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment