Remove Cairo reference/destroy -- this is handled internally
This commit is contained in:
@@ -14,6 +14,7 @@ import lime.graphics.Renderer;
|
||||
@:build(lime.system.CFFI.build())
|
||||
#end
|
||||
|
||||
@:access(lime.graphics.cairo.Cairo)
|
||||
@:access(lime.ui.Window)
|
||||
|
||||
|
||||
@@ -120,12 +121,6 @@ class NativeRenderer {
|
||||
|
||||
if (cacheLock == null || cacheLock.pixels != lock.pixels || cacheLock.width != lock.width || cacheLock.height != lock.height) {
|
||||
|
||||
if (primarySurface != null) {
|
||||
|
||||
primarySurface.destroy ();
|
||||
|
||||
}
|
||||
|
||||
primarySurface = CairoImageSurface.create (lock.pixels, CairoFormat.ARGB32, lock.width, lock.height, lock.pitch);
|
||||
|
||||
if (cairo != null) {
|
||||
|
||||
Reference in New Issue
Block a user