Changeset 62814 in vbox for trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_snapshot.c
- Timestamp:
- Aug 1, 2016 12:51:52 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_snapshot.c
r62492 r62814 55 55 CRASSERT(pSSM && pBuffer && cbBuffer>0); 56 56 57 *pBuffer = crAlloc( cbBuffer);57 *pBuffer = crAlloc((unsigned int /* this case is just so stupid */)cbBuffer); 58 58 if (!*pBuffer) 59 59 return VERR_NO_MEMORY; … … 779 779 if (bReallocMem) 780 780 { 781 pEval[i].coeff = (GLfloat*) crAlloc( size);781 pEval[i].coeff = (GLfloat*) crAlloc((unsigned int /* this case is just so stupid */)size); 782 782 if (!pEval[i].coeff) return VERR_NO_MEMORY; 783 783 } … … 802 802 if (bReallocMem) 803 803 { 804 pEval[i].coeff = (GLfloat*) crAlloc( size);804 pEval[i].coeff = (GLfloat*) crAlloc((unsigned int /* this case is just so stupid */)size); 805 805 if (!pEval[i].coeff) return VERR_NO_MEMORY; 806 806 } … … 1455 1455 } 1456 1456 } 1457 1458 return rc; 1457 /* not reached*/ 1459 1458 } 1460 1459 … … 2650 2649 2651 2650 datasize = crStateGetUniformSize(pProgram->pUniforms[k].type)*itemsize; 2652 pProgram->pUniforms[k].data = crAlloc( datasize);2651 pProgram->pUniforms[k].data = crAlloc((unsigned int /* this case is just so stupid */)datasize); 2653 2652 if (!pProgram->pUniforms[k].data) return VERR_NO_MEMORY; 2654 2653
Note:
See TracChangeset
for help on using the changeset viewer.