|
|
@ -149,6 +149,12 @@ static IAvnGlSurfaceRenderTarget* CreateGlRenderTarget(IOSurfaceRenderTarget* ta |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
- (void)resize:(AvnPixelSize)size withScale: (float) scale{ |
|
|
- (void)resize:(AvnPixelSize)size withScale: (float) scale{ |
|
|
|
|
|
|
|
|
|
|
|
if(size.Height <= 0) |
|
|
|
|
|
size.Height = 1; |
|
|
|
|
|
if(size.Width <= 0) |
|
|
|
|
|
size.Width = 1; |
|
|
|
|
|
|
|
|
@synchronized (lock) { |
|
|
@synchronized (lock) { |
|
|
if(surface == nil |
|
|
if(surface == nil |
|
|
|| surface->size.Width != size.Width |
|
|
|| surface->size.Width != size.Width |
|
|
|