Changeset 53740 in vbox for trunk/src/VBox/Devices/Graphics/shaderlib/glsl_shader.c
- Timestamp:
- Jan 5, 2015 10:59:26 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/shaderlib/glsl_shader.c
r53277 r53740 5052 5052 static BOOL constant_heap_init(struct constant_heap *heap, unsigned int constant_count) 5053 5053 { 5054 #ifndef VBOX 5054 5055 SIZE_T size = (constant_count + 1) * sizeof(*heap->entries) + constant_count * sizeof(*heap->positions); 5055 5056 void *mem = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, size); 5057 #else 5058 SIZE_T size; 5059 void *mem; 5060 5061 /* Don't trash the heap if the input is bogus. */ 5062 if (constant_count == 0) 5063 constant_count = 1; 5064 5065 size = (constant_count + 1) * sizeof(*heap->entries) + constant_count * sizeof(*heap->positions); 5066 mem = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, size); 5067 #endif 5056 5068 5057 5069 if (!mem)
Note:
See TracChangeset
for help on using the changeset viewer.