equal
deleted
inserted
replaced
333 if(!isInitialized) |
333 if(!isInitialized) |
334 { |
334 { |
335 return; |
335 return; |
336 } |
336 } |
337 |
337 |
338 // if there's nothing to flush return |
338 // if there's nothing to flush, just leave the surface session open |
|
339 // if so requested and return. Surface session needs to be left open |
|
340 // if the call came from external renderer like m3g or m2g |
339 if(!commandBuffer.containsDrawnPrimitives()) |
341 if(!commandBuffer.containsDrawnPrimitives()) |
340 { |
342 { |
|
343 if(!closeSurfaceSession) |
|
344 { |
|
345 startFrame(hostBounds.x, hostBounds.y , hostBounds.width , hostBounds.height); |
|
346 } |
341 return; |
347 return; |
342 } |
348 } |
343 |
349 |
344 // Start surface session if not started yet |
350 // Start surface session if not started yet |
345 startFrame(hostBounds.x, hostBounds.y , hostBounds.width , hostBounds.height); |
351 startFrame(hostBounds.x, hostBounds.y , hostBounds.width , hostBounds.height); |