Changeset 19917
- Timestamp:
- 04/09/07 09:24:33 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
juggler/trunk/modules/vrjuggler/vrj/Draw/OGL/GlWindowWin32.cpp
r19873 r19917 397 397 { 398 398 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 399 << clrOutBOLD(clrYELLOW, "WARNING :") << "Display window '"399 << clrOutBOLD(clrYELLOW, "WARNING") << ": Display window '" 400 400 << mVrjDisplay->getName() << "'" << std::endl; 401 401 vprDEBUG_NEXTnl(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 402 << " has an out of date OpenGL frame buffer configuration."403 << std::endl;402 << " has an out of date OpenGL frame buffer " 403 << "configuration.\n"; 404 404 vprDEBUG_NEXTnl(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 405 << " Expected version 2but found version "406 << gl_fb_elt->getVersion() << ". \n";405 << " Expected version 3 but found version " 406 << gl_fb_elt->getVersion() << ". Default values\n"; 407 407 vprDEBUG_NEXTnl(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 408 << " Default valueswill be used for some frame buffer settings.\n"408 << " will be used for some frame buffer settings.\n" 409 409 << vprDEBUG_FLUSH; 410 410 } … … 454 454 { 455 455 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 456 << clrOutBOLD(clrYELLOW, "WARNING :")457 << " Color buffer red channel size was negative ("456 << clrOutBOLD(clrYELLOW, "WARNING") 457 << ": Color buffer red channel size was negative (" 458 458 << red_size << "). Setting to 1.\n" << vprDEBUG_FLUSH; 459 459 red_size = 1; … … 463 463 { 464 464 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 465 << clrOutBOLD(clrYELLOW, "WARNING :")466 << " Color buffer green channel size was negative ("465 << clrOutBOLD(clrYELLOW, "WARNING") 466 << ": Color buffer green channel size was negative (" 467 467 << green_size << "). Setting to 1.\n" << vprDEBUG_FLUSH; 468 468 green_size = 1; … … 472 472 { 473 473 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 474 << clrOutBOLD(clrYELLOW, "WARNING :")475 << " Color buffer blue channel size was negative ("474 << clrOutBOLD(clrYELLOW, "WARNING") 475 << ": Color buffer blue channel size was negative (" 476 476 << blue_size << "). Setting to 1.\n" << vprDEBUG_FLUSH; 477 477 blue_size = 1; … … 481 481 { 482 482 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 483 << clrOutBOLD(clrYELLOW, "WARNING :")484 << " Color buffer alpha channel size was negative ("483 << clrOutBOLD(clrYELLOW, "WARNING") 484 << ": Color buffer alpha channel size was negative (" 485 485 << alpha_size << "). Setting to 1.\n" << vprDEBUG_FLUSH; 486 486 alpha_size = 1; … … 490 490 { 491 491 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 492 << clrOutBOLD(clrYELLOW, "WARNING :")493 << " Auxiliary buffer count was negative (" << num_aux_bufs492 << clrOutBOLD(clrYELLOW, "WARNING") 493 << ": Auxiliary buffer count was negative (" << num_aux_bufs 494 494 << "). Setting to 0.\n" << vprDEBUG_FLUSH; 495 495 num_aux_bufs = 0; … … 499 499 { 500 500 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 501 << clrOutBOLD(clrYELLOW, "WARNING :")502 << " Depth buffer size was negative (" << db_size501 << clrOutBOLD(clrYELLOW, "WARNING") 502 << ": Depth buffer size was negative (" << db_size 503 503 << "). Setting to 1.\n" << vprDEBUG_FLUSH; 504 504 db_size = 1; … … 508 508 { 509 509 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 510 << clrOutBOLD(clrYELLOW, "WARNING :")511 << " Stencil buffer size was negative (" << stencil_size510 << clrOutBOLD(clrYELLOW, "WARNING") 511 << ": Stencil buffer size was negative (" << stencil_size 512 512 << "). Setting to 1.\n" << vprDEBUG_FLUSH; 513 513 stencil_size = 1; … … 517 517 { 518 518 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 519 << clrOutBOLD(clrYELLOW, "WARNING :")520 << " Accumulation buffer red channel size was negative ("519 << clrOutBOLD(clrYELLOW, "WARNING") 520 << ": Accumulation buffer red channel size was negative (" 521 521 << accum_red_size << "). Setting to 1.\n" << vprDEBUG_FLUSH; 522 522 accum_red_size = 1; … … 526 526 { 527 527 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 528 << clrOutBOLD(clrYELLOW, "WARNING :")529 << " Accumulation buffer green channel size was negative ("528 << clrOutBOLD(clrYELLOW, "WARNING") 529 << ": Accumulation buffer green channel size was negative (" 530 530 << accum_green_size << "). Setting to 1.\n" << vprDEBUG_FLUSH; 531 531 accum_green_size = 1; … … 535 535 { 536 536 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 537 << clrOutBOLD(clrYELLOW, "WARNING :")538 << " Accumulation buffer blue channel size was negative ("537 << clrOutBOLD(clrYELLOW, "WARNING") 538 << ": Accumulation buffer blue channel size was negative (" 539 539 << accum_blue_size << "). Setting to 1.\n" << vprDEBUG_FLUSH; 540 540 accum_blue_size = 1; … … 544 544 { 545 545 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 546 << clrOutBOLD(clrYELLOW, "WARNING :")547 << " Accumulation buffer alpha channel size was negative ("546 << clrOutBOLD(clrYELLOW, "WARNING") 547 << ": Accumulation buffer alpha channel size was negative (" 548 548 << accum_alpha_size << "). Setting to 1.\n" << vprDEBUG_FLUSH; 549 549 accum_alpha_size = 1; juggler/trunk/modules/vrjuggler/vrj/Draw/OGL/GlWindowXWin.cpp
r19910 r19917 114 114 { 115 115 vprDEBUG(vprDBG_ERROR, vprDBG_CRITICAL_LVL) 116 << clrOutNORM(clrRED, "ERROR:")117 << " [vrj::GlWindowXWin::open()] Window has not been configured\n"116 << clrOutNORM(clrRED, "ERROR") 117 << ": [vrj::GlWindowXWin::open()] Window has not been configured\n" 118 118 << vprDEBUG_FLUSH; 119 119 return false; … … 123 123 { 124 124 vprDEBUG(vprDBG_ERROR, vprDBG_CRITICAL_LVL) 125 << clrOutNORM(clrRED, "ERROR:")126 << " [vrj::GlWindowXWin::open()] Unable to open display '"125 << clrOutNORM(clrRED, "ERROR") 126 << ": [vrj::GlWindowXWin::open()] Unable to open display '" 127 127 << mXDisplayName << "'.\n" << vprDEBUG_FLUSH; 128 128 return false; … … 137 137 { 138 138 vprDEBUG(vprDBG_ERROR, vprDBG_CRITICAL_LVL) 139 << clrOutNORM(clrRED, "ERROR:") << " Failed to get a GLX visual\n"140 << vprDEBUG_FLUSH;139 << clrOutNORM(clrRED, "ERROR") 140 << ": Failed to get a GLX visual!\n" << vprDEBUG_FLUSH; 141 141 throw glwinx_OpenFailureException(); 142 142 } … … 155 155 { 156 156 vprDEBUG(vprDBG_ERROR, vprDBG_CRITICAL_LVL) 157 << clrOutNORM(clrRED, "ERROR:")158 << " vrj::GlWindowXWin:XCreateColorMap failed on '"157 << clrOutNORM(clrRED, "ERROR") 158 << ": [vrj::GlWindowXWin::open()] XCreateColorMap failed on '" 159 159 << mXDisplayName << "'.\n" << vprDEBUG_FLUSH; 160 160 throw glwinx_OpenFailureException(); … … 186 186 { 187 187 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) 188 << clrOutNORM(clrRED, "ERROR:")189 << " vrj::GlWindowXWin: Couldn't create window for " << mXDisplayName190 << std::endl << vprDEBUG_FLUSH;188 << clrOutNORM(clrRED, "ERROR") 189 << ": [vrj::GlWindowXWin::open()] Couldn't create window for " 190 << mXDisplayName << std::endl << vprDEBUG_FLUSH; 191 191 throw glwinx_OpenFailureException(); 192 192 } … … 195 195 /***************** Set Window Name/Class/Size/Pos *********************/ 196 196 197 /* Before we map the window, we need a name for it (this is also useful for198 * the resource cruft that'll get rid of the borders).197 /* Before we map the window, we need a name for it (this is also useful 198 * for the resource cruft that'll get rid of the borders). 199 199 */ 200 200 classhint = ::XAllocClassHint(); … … 222 222 223 223 /* Get rid of window border, if configured to do so. 224 * This technique doesn't require any modifications to the .XDefaults file225 * or anything, but it will only work with window managers based on MWM226 * (the Motif window manager). That covers most cases.224 * This technique doesn't require any modifications to the .XDefaults 225 * file or anything, but it will only work with window managers based on 226 * MWM (the Motif window manager). That covers most cases. 227 227 * Unfortunately, the generic X resources for communicating with a window 228 228 * manager don't support this feature. … … 231 231 { 232 232 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_HVERB_LVL) 233 << "[vrj::GlWindowXWin::open()] Attempting to make window borderless" 234 << std::endl << vprDEBUG_FLUSH; 233 << "[vrj::GlWindowXWin::open()] Attempting to make window " 234 << "borderless." << std::endl << vprDEBUG_FLUSH; 235 235 236 Atom MotifHints = XInternAtom(mXDisplay, "_MOTIF_WM_HINTS", 0); 236 237 if ( MotifHints == None ) 237 238 { 238 239 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) 239 << clrOutNORM(clrRED, "ERROR:")240 << " vrj::GlWindowXWin: Could not get X atom for _MOTIF_WM_HINTS."241 << std::endl << vprDEBUG_FLUSH;240 << clrOutNORM(clrRED, "ERROR") 241 << ": [vrj::GlWindowXWin::open()] Could not get X atom for " 242 << "_MOTIF_WM_HINTS." << std::endl << vprDEBUG_FLUSH; 242 243 } 243 244 else … … 255 256 { 256 257 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) 257 << clrOutNORM(clrRED, "ERROR:")258 << " vrj::GlWindowXWin: Could not get X atom for _NET_WM_STATE."259 << std::endl << vprDEBUG_FLUSH;258 << clrOutNORM(clrRED, "ERROR") 259 << ": [vrj::GlWindowXWin::open()] Could not get X atom for " 260 << "_NET_WM_STATE." << std::endl << vprDEBUG_FLUSH; 260 261 } 261 262 else … … 277 278 { 278 279 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) 279 << clrOutNORM(clrRED,"ERROR:") 280 << "vrj::GlWindowXWin: Could not get X atom for _NET_WM_STATE_FULLSCREEN." 281 << std::endl << vprDEBUG_FLUSH; 280 << clrOutNORM(clrRED, "ERROR") 281 << ": [vrj::GlWindowXWin::open()] Could not get X atom for " 282 << "_NET_WM_STATE_FULLSCREEN." << std::endl 283 << vprDEBUG_FLUSH; 282 284 } 283 285 else … … 293 295 { 294 296 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) 295 << clrOutNORM(clrRED,"ERROR:") 296 << "vrj::GlWindowXWin: Could not get X atoms for _NET_WM_STATE_ABOVE and _NET_WM_STATE_STAYS_ON_TOP." 297 << clrOutNORM(clrRED, "ERROR") 298 << ": [vrj::GlWindowXWin::open()] Could not get X atoms " 299 << "for _NET_WM_STATE_ABOVE and _NET_WM_STATE_STAYS_ON_TOP." 297 300 << std::endl << vprDEBUG_FLUSH; 298 301 } … … 310 313 { 311 314 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) 312 << clrOutNORM(clrRED,"ERROR:") 313 << "vrj::GlWindowXWin: Could not get X atoms for _NET_WM_STATE_MAXIMIZED_(HORZ/VERT)." 314 << std::endl << vprDEBUG_FLUSH; 315 << clrOutNORM(clrRED, "ERROR") 316 << ": [vrj::GlWindowXWin::open()] Could not get X atoms " 317 << "for _NET_WM_STATE_MAXIMIZED_(HORZ/VERT)." << std::endl 318 << vprDEBUG_FLUSH; 315 319 } 316 320 else … … 326 330 { 327 331 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) 328 << clrOutNORM(clrRED, "ERROR:")329 << " vrj::GlWindowXWin: Could not get X atom for _NET_WM_STATE_MODAL."330 << std::endl << vprDEBUG_FLUSH;332 << clrOutNORM(clrRED, "ERROR") 333 << ": [vrj::GlWindowXWin::open()] Could not get X atom for " 334 << "_NET_WM_STATE_MODAL." << std::endl << vprDEBUG_FLUSH; 331 335 } 332 336 else … … 338 342 339 343 XChangeProperty(mXDisplay, mXWindow, net_wm_state, XA_ATOM, 340 32, PropModeReplace, (unsigned char *) net_winstates, curr_winstate); 344 32, PropModeReplace, (unsigned char*) net_winstates, 345 curr_winstate); 341 346 } 342 347 … … 349 354 ::XSync(mXDisplay, 0); 350 355 351 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) << "vrj::GlWindowXWin: done mapping window\n" 352 << vprDEBUG_FLUSH; 356 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) 357 << "[vrj::GlWindowXWin::open()] Done mapping window.\n" 358 << vprDEBUG_FLUSH; 353 359 354 360 /********************* OpenGL Context Stuff *********************/ … … 358 364 { 359 365 vprDEBUG(vprDBG_ERROR, vprDBG_CRITICAL_LVL) 360 << clrOutNORM(clrRED,"ERROR:") << "Couldn't create GlxContext for '" 366 << clrOutNORM(clrRED, "ERROR") 367 << ": Couldn't create GlxContext for '" 361 368 << mXDisplayName << "'\n" << vprDEBUG_FLUSH; 362 369 throw glwinx_OpenFailureException(); … … 617 624 { 618 625 vprDEBUG(vprDBG_ERROR, vprDBG_CRITICAL_LVL) 619 << clrOutNORM(clrRED, "ERROR :") << "X Display '" << mXDisplayName626 << clrOutNORM(clrRED, "ERROR") << ": X Display '" << mXDisplayName 620 627 << "' doesn't support GLX.\n" << vprDEBUG_FLUSH; 621 628 return NULL; … … 642 649 { 643 650 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 644 << clrOutBOLD(clrYELLOW, "WARNING :") << "Display window '"651 << clrOutBOLD(clrYELLOW, "WARNING") << ": Display window '" 645 652 << mVrjDisplay->getName() << "'" << std::endl; 646 653 vprDEBUG_NEXTnl(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 647 << "has an out of date OpenGL frame buffer configuration.\n"; 654 << " has an out of date OpenGL frame buffer " 655 << "configuration.\n"; 648 656 vprDEBUG_NEXTnl(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 649 << " Expected version 3 but found version "657 << " Expected version 3 but found version " 650 658 << gl_fb_elt->getVersion() << ". Default values\n"; 651 659 vprDEBUG_NEXTnl(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 652 << " will be used for some frame buffer settings.\n"660 << " will be used for some frame buffer settings.\n" 653 661 << vprDEBUG_FLUSH; 654 662 } … … 704 712 { 705 713 vprDEBUG(vprDBG_ERROR, vprDBG_CRITICAL_LVL) 706 << clrOutBOLD(clrRED, "ERROR :")707 << " Failed to get X11 visual info for visual ID "714 << clrOutBOLD(clrRED, "ERROR") 715 << ": Failed to get X11 visual info for visual ID " 708 716 << std::hex << visual_id << std::dec << std::endl 709 717 << vprDEBUG_FLUSH; 710 718 vprDEBUG_NEXT(vprDBG_ERROR, vprDBG_CRITICAL_LVL) 711 << " Window '" << mVrjDisplay->getName() << "' cannot be opened"712 << std::endl << vprDEBUG_FLUSH;719 << " Window '" << mVrjDisplay->getName() 720 << "' cannot be opened" << std::endl << vprDEBUG_FLUSH; 713 721 } 714 722 … … 720 728 { 721 729 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 722 << clrOutBOLD(clrYELLOW, "WARNING :")723 << " Color buffer red channel size was negative ("730 << clrOutBOLD(clrYELLOW, "WARNING") 731 << ": Color buffer red channel size was negative (" 724 732 << red_size << "). Setting to 1.\n" << vprDEBUG_FLUSH; 725 733 red_size = 1; … … 729 737 { 730 738 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 731 << clrOutBOLD(clrYELLOW, "WARNING :")732 << " Color buffer green channel size was negative ("739 << clrOutBOLD(clrYELLOW, "WARNING") 740 << ": Color buffer green channel size was negative (" 733 741 << green_size << "). Setting to 1.\n" << vprDEBUG_FLUSH; 734 742 green_size = 1; … … 738 746 { 739 747 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 740 << clrOutBOLD(clrYELLOW, "WARNING :")741 << " Color buffer blue channel size was negative ("748 << clrOutBOLD(clrYELLOW, "WARNING") 749 << ": Color buffer blue channel size was negative (" 742 750 << blue_size << "). Setting to 1.\n" << vprDEBUG_FLUSH; 743 751 blue_size = 1; … … 747 755 { 748 756 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 749 << clrOutBOLD(clrYELLOW, "WARNING :")750 << " Color buffer alpha channel size was negative ("757 << clrOutBOLD(clrYELLOW, "WARNING") 758 << ": Color buffer alpha channel size was negative (" 751 759 << alpha_size << "). Setting to 1.\n" << vprDEBUG_FLUSH; 752 760 alpha_size = 1; … … 756 764 { 757 765 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 758 << clrOutBOLD(clrYELLOW, "WARNING :")759 << " Auxiliary buffer count was negative (" << num_aux_bufs766 << clrOutBOLD(clrYELLOW, "WARNING") 767 << ": Auxiliary buffer count was negative (" << num_aux_bufs 760 768 << "). Setting to 0.\n" << vprDEBUG_FLUSH; 761 769 num_aux_bufs = 0; … … 765 773 { 766 774 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 767 << clrOutBOLD(clrYELLOW, "WARNING :")768 << " Depth buffer size was negative (" << db_size775 << clrOutBOLD(clrYELLOW, "WARNING") 776 << ": Depth buffer size was negative (" << db_size 769 777 << "). Setting to 1.\n" << vprDEBUG_FLUSH; 770 778 db_size = 1; … … 774 782 { 775 783 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 776 << clrOutBOLD(clrYELLOW, "WARNING :")777 << " Stencil buffer size was negative (" << stencil_size784 << clrOutBOLD(clrYELLOW, "WARNING") 785 << ": Stencil buffer size was negative (" << stencil_size 778 786 << "). Setting to 1.\n" << vprDEBUG_FLUSH; 779 787 stencil_size = 1; … … 783 791 { 784 792 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 785 << clrOutBOLD(clrYELLOW, "WARNING :")786 << " Accumulation buffer red channel size was negative ("793 << clrOutBOLD(clrYELLOW, "WARNING") 794 << ": Accumulation buffer red channel size was negative (" 787 795 << accum_red_size << "). Setting to 1.\n" << vprDEBUG_FLUSH; 788 796 accum_red_size = 1; … … 792 800 { 793 801 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 794 << clrOutBOLD(clrYELLOW, "WARNING :")795 << " Accumulation buffer green channel size was negative ("802 << clrOutBOLD(clrYELLOW, "WARNING") 803 << ": Accumulation buffer green channel size was negative (" 796 804 << accum_green_size << "). Setting to 1.\n" << vprDEBUG_FLUSH; 797 805 accum_green_size = 1; … … 801 809 { 802 810 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 803 << clrOutBOLD(clrYELLOW, "WARNING :")804 << " Accumulation buffer blue channel size was negative ("811 << clrOutBOLD(clrYELLOW, "WARNING") 812 << ": Accumulation buffer blue channel size was negative (" 805 813 << accum_blue_size << "). Setting to 1.\n" << vprDEBUG_FLUSH; 806 814 accum_blue_size = 1; … … 810 818 { 811 819 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 812 << clrOutBOLD(clrYELLOW, "WARNING :")813 << " Accumulation buffer alpha channel size was negative ("820 << clrOutBOLD(clrYELLOW, "WARNING") 821 << ": Accumulation buffer alpha channel size was negative (" 814 822 << accum_alpha_size << "). Setting to 1.\n" << vprDEBUG_FLUSH; 815 823 accum_alpha_size = 1; … … 1106 1114 { 1107 1115 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) 1108 << "WARNING: Could not get an OpenGL visual for '" << mXDisplayName1109 << " '\n";1116 << clrOutBOLD(clrYELLOW, "WARNING") << ": Could not get an " 1117 << "OpenGL visual for '" << mXDisplayName << "'\n"; 1110 1118 vprDEBUG_NEXTnl(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) 1111 << " with stereo rendering enabled; trying without.\n"1119 << " with stereo rendering enabled; trying without.\n" 1112 1120 << vprDEBUG_FLUSH; 1113 1121 mInStereo = false; … … 1132 1140 { 1133 1141 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) 1134 << "WARNING: Could not get an OpenGL visual for '" << mXDisplayName1135 << " '\n";1142 << clrOutBOLD(clrYELLOW, "WARNING") << ": Could not get an " 1143 << "OpenGL visual for '" << mXDisplayName << "'\n"; 1136 1144 vprDEBUG_NEXTnl(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) 1137 << " with accumulation buffer settings; trying without.\n"1145 << " with accumulation buffer settings; trying without.\n" 1138 1146 << vprDEBUG_FLUSH; 1139 1147 … … 1154 1162 // Disabling the alpha channel may give us something usable. 1155 1163 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) 1156 << "WARNING: Could not get an OpenGL visual for '" << mXDisplayName1157 << " '\n";1164 << clrOutBOLD(clrYELLOW, "WARNING") << ": Could not get an OpenGL " 1165 << "visual for '" << mXDisplayName << "'\n"; 1158 1166 vprDEBUG_NEXTnl(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) 1159 1167 << "with a color buffer alpha channel; trying without.\n" … … 1209 1217 } 1210 1218 1211 1212 1219 } // namespace vrj
