()
| 1437 | |
| 1438 | |
| 1439 | @Override |
| 1440 | public void endDraw() { |
| 1441 | report("top endDraw()"); |
| 1442 | |
| 1443 | if (!drawing) { |
| 1444 | return; |
| 1445 | } |
| 1446 | |
| 1447 | // Flushing any remaining geometry. |
| 1448 | flush(); |
| 1449 | |
| 1450 | if (primaryGraphics) { |
| 1451 | endOnscreenDraw(); |
| 1452 | } else { |
| 1453 | endOffscreenDraw(); |
| 1454 | } |
| 1455 | |
| 1456 | if (primaryGraphics) { |
| 1457 | setCurrentPG(null); |
| 1458 | } else { |
| 1459 | getPrimaryPG().setCurrentPG(); |
| 1460 | } |
| 1461 | drawing = false; |
| 1462 | |
| 1463 | report("bot endDraw()"); |
| 1464 | } |
| 1465 | |
| 1466 | |
| 1467 | protected PGraphicsOpenGL getPrimaryPG() { |
no test coverage detected