- Timestamp:
- Mar 16, 2009 11:51:49 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/load.c
r17919 r17921 14 14 #include "cr_process.h" 15 15 #include "cr_rand.h" 16 #include "cr_netserver.h" 16 17 #include "stub.h" 17 18 #include <stdlib.h> … … 21 22 #include <sys/types.h> 22 23 #include <unistd.h> 23 #else24 #include "cr_netserver.h"25 24 #endif 26 25 #ifdef CHROMIUM_THREADSAFE … … 515 514 if (stub_initialized) 516 515 return true; 517 stub_initialized = 1;518 516 519 517 stubInitVars(); … … 523 521 524 522 crNetInit( NULL, NULL ); 523 524 #ifndef WINDOWS 525 { 526 CRNetServer ns; 527 528 ns.name = "vboxhgcm://host:0"; 529 ns.buffer_size = 1024; 530 crNetServerConnect(&ns); 531 if (!ns.conn) 532 { 533 crWarning("Failed to connect to host. Make sure 3D acceleration is enabled for this VM."); 534 return false; 535 } 536 else 537 { 538 crNetFreeConnection(ns.conn); 539 } 540 } 541 #endif 542 525 543 strcpy(response, "3 0 array 1 feedback 2 pack"); 526 544 spuchain = crStrSplit( response, " " ); … … 547 565 // spu chain load failed somewhere 548 566 if (!stub.spu) { 549 stub_initialized = 0;550 567 return false; 551 568 } … … 577 594 #endif 578 595 596 stub_initialized = 1; 579 597 return true; 580 598 }
Note:
See TracChangeset
for help on using the changeset viewer.