()
| 328 | |
| 329 | |
| 330 | protected void allocate() { |
| 331 | dispose(); // Just in the case this object is being re-allocated. |
| 332 | |
| 333 | context = pgl.getCurrentContext(); |
| 334 | glres = new GLResourceFrameBuffer(this); // create the FBO resources... |
| 335 | |
| 336 | if (screenFb) { |
| 337 | glFbo = 0; |
| 338 | } else { |
| 339 | if (multisample) { |
| 340 | initColorBufferMultisample(); |
| 341 | } |
| 342 | |
| 343 | if (packedDepthStencil) { |
| 344 | initPackedDepthStencilBuffer(); |
| 345 | } else { |
| 346 | if (0 < depthBits) { |
| 347 | initDepthBuffer(); |
| 348 | } |
| 349 | if (0 < stencilBits) { |
| 350 | initStencilBuffer(); |
| 351 | } |
| 352 | } |
| 353 | } |
| 354 | } |
| 355 | |
| 356 | |
| 357 | protected void dispose() { |
no test coverage detected