summaryrefslogtreecommitdiffhomepage
path: root/src/rtextures.c
diff options
context:
space:
mode:
authorRay <[email protected]>2023-03-06 14:58:58 +0100
committerRay <[email protected]>2023-03-06 14:58:58 +0100
commit614e0518a7740bb900539e8c92517acaf052232c (patch)
tree73b05455e69de45d866ce26eaad907328f85b417 /src/rtextures.c
parentcf1ebada0e0c18a02d48f091091418ce7b020b1e (diff)
downloadraylib-614e0518a7740bb900539e8c92517acaf052232c.tar.gz
raylib-614e0518a7740bb900539e8c92517acaf052232c.zip
Remove trailing spaces
Diffstat (limited to 'src/rtextures.c')
-rw-r--r--src/rtextures.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rtextures.c b/src/rtextures.c
index f9b5c862..56b200ce 100644
--- a/src/rtextures.c
+++ b/src/rtextures.c
@@ -320,7 +320,7 @@ Image LoadImageAnim(const char *fileName, int *frames)
#else
if (false) { }
#endif
- else
+ else
{
image = LoadImage(fileName);
frameCount = 1;
@@ -507,7 +507,7 @@ Image LoadImageFromScreen(void)
bool IsImageReady(Image image)
{
return ((image.data != NULL) && // Validate pixel data available
- (image.width > 0) &&
+ (image.width > 0) &&
(image.height > 0) && // Validate image size
(image.format > 0) && // Validate image format
(image.mipmaps > 0)); // Validate image mipmaps (at least 1 for basic mipmap level)
@@ -3340,10 +3340,10 @@ RenderTexture2D LoadRenderTexture(int width, int height)
bool IsTextureReady(Texture2D texture)
{
// TODO: Validate maximum texture size supported by GPU?
-
+
return ((texture.id > 0) && // Validate OpenGL id
- (texture.width > 0) &&
- (texture.height > 0) && // Validate texture size
+ (texture.width > 0) &&
+ (texture.height > 0) && // Validate texture size
(texture.format > 0) && // Validate texture pixel format
(texture.mipmaps > 0)); // Validate texture mipmaps (at least 1 for basic mipmap level)
}