mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-01 10:13:22 +00:00
Fix Skia/OS X compilation errors in skia_window_osx.mm
This commit is contained in:
parent
ade23a4151
commit
e46cebe5a0
@ -16,6 +16,7 @@
|
||||
#include "she/event_queue.h"
|
||||
#include "she/osx/window.h"
|
||||
#include "she/skia/skia_display.h"
|
||||
#include "she/skia/skia_surface.h"
|
||||
#include "she/system.h"
|
||||
|
||||
#include "mac/SkCGUtils.h"
|
||||
@ -160,7 +161,7 @@ public:
|
||||
paintGC(rect);
|
||||
break;
|
||||
|
||||
#ifdef SK_SUPPORT_GPU
|
||||
#if SK_SUPPORT_GPU
|
||||
case Backend::GL:
|
||||
if (m_nsGL)
|
||||
[m_nsGL flushBuffer];
|
||||
@ -170,7 +171,7 @@ public:
|
||||
}
|
||||
|
||||
void onWindowChanged() override {
|
||||
#ifdef SK_SUPPORT_GPU
|
||||
#if SK_SUPPORT_GPU
|
||||
if (m_nsGL)
|
||||
[m_nsGL setView:[m_window contentView]];
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user