mirror of
https://github.com/encounter/engine.git
synced 2026-03-30 11:09:55 -07:00
Flip y coordinate on FNL as a workaround
This commit is contained in:
@@ -52,7 +52,12 @@ SkCanvas* GaneshCanvas::GetCanvas(int32_t fbo, const SkISize& size) {
|
||||
desc.fWidth = size.width();
|
||||
desc.fHeight = size.height();
|
||||
desc.fConfig = kSkia8888_GrPixelConfig;
|
||||
#if defined(FNL_MUSL)
|
||||
// TODO(kulakowski) This should be handled by MGL
|
||||
desc.fOrigin = kTopLeft_GrSurfaceOrigin;
|
||||
#else
|
||||
desc.fOrigin = kBottomLeft_GrSurfaceOrigin;
|
||||
#endif
|
||||
desc.fRenderTargetHandle = fbo;
|
||||
|
||||
skia::RefPtr<GrRenderTarget> target = skia::AdoptRef(
|
||||
|
||||
Reference in New Issue
Block a user