- Timestamp:
- Oct 1, 2013 12:20:04 PM (11 years ago)
- Location:
- trunk/src/VBox/HostServices/SharedOpenGL/crserverlib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_config.c
r47577 r48793 243 243 cr_server.fVramPresentModeDefault = CR_SERVER_REDIR_F_FBO_RAM/* | CR_SERVER_REDIR_F_FBO_RPW*/; 244 244 245 env = crGetenv("CR_SERVER_CAPS"); 246 if (env && env[0] != '\0') 247 { 248 cr_server.u32Caps = crServerVBoxParseNumerics(env, 0); 249 cr_server.u32Caps &= ~(CR_VBOX_CAP_TEX_PRESENT/* | CR_VBOX_CAP_NO_DWM_SUPPORT*/); 250 } 251 else 252 { 253 cr_server.u32Caps = CR_VBOX_CAP_TEX_PRESENT/* | CR_VBOX_CAP_NO_DWM_SUPPORT*/; 254 } 255 256 if (!(cr_server.fPresentModeDefault & CR_SERVER_REDIR_F_FBO)) 257 { 258 /* can not do tex present in case CR_SERVER_REDIR_F_FBO is disabled */ 259 cr_server.u32Caps &= ~CR_VBOX_CAP_TEX_PRESENT; 260 } 261 262 crInfo("Cfg: fPresentModeDefault(%#x), fVramPresentModeDefault(%#x), u32Caps(%#x)", 263 cr_server.fPresentModeDefault, cr_server.fVramPresentModeDefault, cr_server.u32Caps); 264 245 265 /* Need to do this as early as possible */ 246 266 … … 387 407 cr_server.fVramPresentModeDefault = CR_SERVER_REDIR_F_FBO_RAM/* | CR_SERVER_REDIR_F_FBO_RPW*/; 388 408 409 env = crGetenv("CR_SERVER_CAPS"); 410 if (env && env[0] != '\0') 411 { 412 cr_server.u32Caps = crServerVBoxParseNumerics(env, 0); 413 cr_server.u32Caps &= ~(CR_VBOX_CAP_TEX_PRESENT/* | CR_VBOX_CAP_NO_DWM_SUPPORT*/); 414 } 415 else 416 { 417 cr_server.u32Caps = CR_VBOX_CAP_TEX_PRESENT/* | CR_VBOX_CAP_NO_DWM_SUPPORT*/; 418 } 419 420 if (!(cr_server.fPresentModeDefault & CR_SERVER_REDIR_F_FBO)) 421 { 422 /* can not do tex present in case CR_SERVER_REDIR_F_FBO is disabled */ 423 cr_server.u32Caps &= ~CR_VBOX_CAP_TEX_PRESENT; 424 } 425 426 crInfo("Cfg: fPresentModeDefault(%#x), fVramPresentModeDefault(%#x), u32Caps(%#x)", 427 cr_server.fPresentModeDefault, cr_server.fVramPresentModeDefault, cr_server.u32Caps); 428 389 429 cr_server.head_spu->dispatch_table.GetChromiumParametervCR(GL_WINDOW_POSITION_CR, 0, GL_INT, 2, &dims[0]); 390 430 cr_server.head_spu->dispatch_table.GetChromiumParametervCR(GL_WINDOW_SIZE_CR, 0, GL_INT, 2, &dims[2]); -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_main.c
r48726 r48793 340 340 } 341 341 342 env = crGetenv("CR_SERVER_CAPS");343 if (env && env[0] != '\0')344 {345 cr_server.u32Caps = crServerVBoxParseNumerics(env, 0);346 cr_server.u32Caps &= ~(CR_VBOX_CAP_TEX_PRESENT | CR_VBOX_CAP_NO_DWM_SUPPORT);347 }348 else349 {350 cr_server.u32Caps = CR_VBOX_CAP_TEX_PRESENT;351 }352 353 342 cr_server.firstCallCreateContext = GL_TRUE; 354 343 cr_server.firstCallMakeCurrent = GL_TRUE; … … 449 438 crInfo("Info: using multiple contexts!"); 450 439 crDebug("Debug: using multiple contexts!"); 451 }452 453 env = crGetenv("CR_SERVER_CAPS");454 if (env && env[0] != '\0')455 {456 cr_server.u32Caps = crServerVBoxParseNumerics(env, 0);457 cr_server.u32Caps &= ~(CR_VBOX_CAP_TEX_PRESENT | CR_VBOX_CAP_NO_DWM_SUPPORT);458 }459 else460 {461 cr_server.u32Caps = CR_VBOX_CAP_TEX_PRESENT;462 440 } 463 441
Note:
See TracChangeset
for help on using the changeset viewer.