summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2022-11-22 01:02:54 +0100
committerRay <[email protected]>2022-11-22 01:02:54 +0100
commitf6558fe6e0932863b83d2a6a49b8fc81b7354242 (patch)
tree3d57d87b54e42ac7312585d2df76b01d75490e05 /src
parent36bb57d1becc0bfa543e9ea5beb489a718cb237b (diff)
downloadraylib-f6558fe6e0932863b83d2a6a49b8fc81b7354242.tar.gz
raylib-f6558fe6e0932863b83d2a6a49b8fc81b7354242.zip
Minor tweaks
Diffstat (limited to 'src')
-rw-r--r--src/raylib.h4
-rw-r--r--src/rcore.c4
-rw-r--r--src/rlgl.h2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/raylib.h b/src/raylib.h
index 1abce717..c48380d8 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -857,8 +857,8 @@ typedef enum {
BLEND_ADD_COLORS, // Blend textures adding colors (alternative)
BLEND_SUBTRACT_COLORS, // Blend textures subtracting colors (alternative)
BLEND_ALPHA_PREMULTIPLY, // Blend premultiplied textures considering alpha
- BLEND_CUSTOM, // Blend textures using custom src/dst factors (use rlSetBlendMode())
- BLEND_CUSTOM_SEPARATE // Blend textures using custom rgb/alpha separate src/dst factors (use rlSetBlendModeSeparate())
+ BLEND_CUSTOM, // Blend textures using custom src/dst factors (use rlSetBlendFactors())
+ BLEND_CUSTOM_SEPARATE // Blend textures using custom rgb/alpha separate src/dst factors (use rlSetBlendFactorsSeparate())
} BlendMode;
// Gesture
diff --git a/src/rcore.c b/src/rcore.c
index 3fec0d42..fe1f20a0 100644
--- a/src/rcore.c
+++ b/src/rcore.c
@@ -3190,9 +3190,9 @@ FilePathList LoadDirectoryFilesEx(const char *basePath, const char *filter, bool
// Unload directory filepaths
void UnloadDirectoryFiles(FilePathList files)
{
- if (files.capacity > 0)
+ if (files.count > 0)
{
- for (unsigned int i = 0; i < files.capacity; i++) RL_FREE(files.paths[i]);
+ for (unsigned int i = 0; i < files.count; i++) RL_FREE(files.paths[i]);
RL_FREE(files.paths);
}
diff --git a/src/rlgl.h b/src/rlgl.h
index edd74862..496f4c41 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -1816,7 +1816,7 @@ void rlCheckErrors()
void rlSetBlendMode(int mode)
{
#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
- if (RLGL.State.currentBlendMode != mode || ((mode == RL_BLEND_CUSTOM || mode == RL_BLEND_CUSTOM_SEPARATE) && RLGL.State.glCustomBlendModeModified))
+ if ((RLGL.State.currentBlendMode != mode) || ((mode == RL_BLEND_CUSTOM || mode == RL_BLEND_CUSTOM_SEPARATE) && RLGL.State.glCustomBlendModeModified))
{
rlDrawRenderBatch(RLGL.currentBatch);