mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2025-02-26 16:44:00 -05:00
Cleanup.
This commit is contained in:
parent
a8ef81ae4b
commit
1f241e3cc1
1 changed files with 4 additions and 4 deletions
|
@ -152,12 +152,12 @@ bgfx::TextureHandle loadTexture(bx::FileReaderI* _reader, const char* _name, uin
|
||||||
|
|
||||||
bx::ReallocatorI* allocator = entry::getAllocator();
|
bx::ReallocatorI* allocator = entry::getAllocator();
|
||||||
|
|
||||||
uint32_t size;
|
uint32_t size = 0;
|
||||||
void* data = loadMem(_reader, allocator, filePath, &size);
|
void* data = loadMem(_reader, allocator, filePath, &size);
|
||||||
|
|
||||||
int width;
|
int width = 0;
|
||||||
int height;
|
int height = 0;
|
||||||
int comp;
|
int comp = 0;
|
||||||
|
|
||||||
uint8_t* img = NULL;
|
uint8_t* img = NULL;
|
||||||
img = stbi_load_from_memory( (uint8_t*)data, size, &width, &height, &comp, 4);
|
img = stbi_load_from_memory( (uint8_t*)data, size, &width, &height, &comp, 4);
|
||||||
|
|
Loading…
Reference in a new issue