Changeset 31003 in vbox
- Timestamp:
- Jul 22, 2010 2:53:11 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.cpp
r30394 r31003 470 470 int VBoxVHWAGlShader::init() 471 471 { 472 int rc ;472 int rc = VERR_GENERAL_FAILURE; 473 473 GLint *length; 474 474 const char **sources; … … 481 481 AssertRC(rc); 482 482 if(RT_FAILURE(rc)) 483 return rc;483 goto exit; 484 484 sources[i] = maComponents[i]->contents(); 485 485 } … … 512 512 vboxglGetShaderInfoLog(mShader, 16300, NULL, pBuf); 513 513 VBOXQGLLOG(("\ncompile log:\n-----------\n%s\n---------\n", pBuf)); 514 delete pBuf;514 delete[] pBuf; 515 515 #endif 516 516 … … 518 518 if(compiled) 519 519 { 520 return VINF_SUCCESS; 520 rc = VINF_SUCCESS; 521 goto exit; 521 522 } 522 523 … … 527 528 mShader = 0; 528 529 530 exit: 529 531 delete[] length; 530 532 delete[] sources; 531 return VERR_GENERAL_FAILURE;533 return rc; 532 534 } 533 535
Note:
See TracChangeset
for help on using the changeset viewer.