Code gardening
This commit is contained in:
parent
99b61089c8
commit
7711de62fb
1 changed files with 40 additions and 45 deletions
|
|
@ -315,7 +315,7 @@ Image LoadImageRaw(const char *fileName, int width, int height, int format, int
|
|||
unsigned char *dataPtr = fileData;
|
||||
int size = GetPixelDataSize(width, height, format);
|
||||
|
||||
if (size <= dataSize) // Security check
|
||||
if (size <= dataSize) // Security check
|
||||
{
|
||||
// Offset file data to expected raw image by header size
|
||||
if ((headerSize > 0) && ((headerSize + size) <= dataSize)) dataPtr += headerSize;
|
||||
|
|
@ -4288,7 +4288,7 @@ TextureCubemap LoadTextureCubemap(Image image, int layout)
|
|||
{
|
||||
TextureCubemap cubemap = { 0 };
|
||||
|
||||
if (layout == CUBEMAP_LAYOUT_AUTO_DETECT) // Try to automatically guess layout type
|
||||
if (layout == CUBEMAP_LAYOUT_AUTO_DETECT) // Try to automatically guess layout type
|
||||
{
|
||||
// Check image width/height to determine the type of cubemap provided
|
||||
if (image.width > image.height)
|
||||
|
|
|
|||
Loading…
Reference in a new issue