| 2456 | | if (getTextureType()==COMPRESSED_TEXTURE || getTextureType()==COMPRESSED_RGBA_TEXTURE) |
|---|
| 2457 | | { |
|---|
| 2458 | | // dummy Viewer to get round silly Windows autoregistration problem for GraphicsWindowWin32.cpp |
|---|
| 2459 | | osgViewer::Viewer viewer; |
|---|
| 2460 | | |
|---|
| 2461 | | osg::ref_ptr<MyGraphicsContext> context; |
|---|
| 2462 | | |
|---|
| 2463 | | if (requiresGraphicsContextInMainThread) |
|---|
| 2464 | | { |
|---|
| 2465 | | context = new MyGraphicsContext(getBuildLog()); |
|---|
| 2466 | | if (!context || !context->valid()) |
|---|
| 2467 | | { |
|---|
| 2468 | | log(osg::NOTICE,"Error: Unable to create graphis context, problem with running osgViewer-%s, cannot run compression.",osgViewerGetVersion()); |
|---|
| 2469 | | return 1; |
|---|
| 2470 | | } |
|---|
| 2471 | | } |
|---|
| 2472 | | |
|---|
| 2473 | | writeDestination(); |
|---|
| 2474 | | } |
|---|
| 2475 | | else |
|---|
| 2476 | | { |
|---|
| 2477 | | writeDestination(); |
|---|
| 2478 | | } |
|---|
| | 2456 | // dummy Viewer to get round silly Windows autoregistration problem for GraphicsWindowWin32.cpp |
|---|
| | 2457 | osgViewer::Viewer viewer; |
|---|
| | 2458 | |
|---|
| | 2459 | osg::ref_ptr<MyGraphicsContext> context; |
|---|
| | 2460 | |
|---|
| | 2461 | if (requiresGraphicsContextInMainThread) |
|---|
| | 2462 | { |
|---|
| | 2463 | context = new MyGraphicsContext(getBuildLog()); |
|---|
| | 2464 | if (!context || !context->valid()) |
|---|
| | 2465 | { |
|---|
| | 2466 | log(osg::NOTICE,"Error: Unable to create graphis context, problem with running osgViewer-%s, cannot run compression.",osgViewerGetVersion()); |
|---|
| | 2467 | return 1; |
|---|
| | 2468 | } |
|---|
| | 2469 | } |
|---|
| | 2470 | |
|---|
| | 2471 | writeDestination(); |
|---|