| 351 | | |
|---|
| 352 | | GLGenFramebuffersEXTProcT glGenFramebuffersEXTProc = |
|---|
| 353 | | (GLGenFramebuffersEXTProcT) win->getFunction( |
|---|
| 354 | | _uiFuncGenFramebuffers); |
|---|
| 355 | | |
|---|
| 356 | | glGenFramebuffersEXTProc(1, &uiFBOId); |
|---|
| 357 | | |
|---|
| 358 | | win->setGLObjectId(osgid, uiFBOId); |
|---|
| 359 | | |
|---|
| 360 | | GLBindFramebufferEXTProcT glBindFramebufferEXTProc = |
|---|
| 361 | | (GLBindFramebufferEXTProcT) win->getFunction( |
|---|
| 362 | | _uiFuncBindFramebuffer); |
|---|
| 363 | | |
|---|
| | 351 | if(mode == Window::initialize) |
|---|
| | 352 | { |
|---|
| | 353 | GLGenFramebuffersEXTProcT glGenFramebuffersEXTProc = |
|---|
| | 354 | (GLGenFramebuffersEXTProcT) win->getFunction( |
|---|
| | 355 | _uiFuncGenFramebuffers); |
|---|
| | 356 | |
|---|
| | 357 | glGenFramebuffersEXTProc(1, &uiFBOId); |
|---|
| | 358 | |
|---|
| | 359 | win->setGLObjectId(osgid, uiFBOId); |
|---|
| | 360 | } |
|---|
| | 361 | else |
|---|
| | 362 | { |
|---|
| | 363 | // already has an GLid |
|---|
| | 364 | uiFBOId = win->getGLObjectId(osgid); |
|---|
| | 365 | } |
|---|
| | 366 | |
|---|
| | 367 | GLBindFramebufferEXTProcT glBindFramebufferEXTProc = |
|---|
| | 368 | (GLBindFramebufferEXTProcT) win->getFunction( |
|---|
| | 369 | _uiFuncBindFramebuffer); |
|---|