Skip to content

Commit f6558fe

Browse files
committed
Minor tweaks
1 parent 36bb57d commit f6558fe

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/raylib.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -857,8 +857,8 @@ typedef enum {
857857
BLEND_ADD_COLORS, // Blend textures adding colors (alternative)
858858
BLEND_SUBTRACT_COLORS, // Blend textures subtracting colors (alternative)
859859
BLEND_ALPHA_PREMULTIPLY, // Blend premultiplied textures considering alpha
860-
BLEND_CUSTOM, // Blend textures using custom src/dst factors (use rlSetBlendMode())
861-
BLEND_CUSTOM_SEPARATE // Blend textures using custom rgb/alpha separate src/dst factors (use rlSetBlendModeSeparate())
860+
BLEND_CUSTOM, // Blend textures using custom src/dst factors (use rlSetBlendFactors())
861+
BLEND_CUSTOM_SEPARATE // Blend textures using custom rgb/alpha separate src/dst factors (use rlSetBlendFactorsSeparate())
862862
} BlendMode;
863863

864864
// Gesture

src/rcore.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3190,9 +3190,9 @@ FilePathList LoadDirectoryFilesEx(const char *basePath, const char *filter, bool
31903190
// Unload directory filepaths
31913191
void UnloadDirectoryFiles(FilePathList files)
31923192
{
3193-
if (files.capacity > 0)
3193+
if (files.count > 0)
31943194
{
3195-
for (unsigned int i = 0; i < files.capacity; i++) RL_FREE(files.paths[i]);
3195+
for (unsigned int i = 0; i < files.count; i++) RL_FREE(files.paths[i]);
31963196

31973197
RL_FREE(files.paths);
31983198
}

src/rlgl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1816,7 +1816,7 @@ void rlCheckErrors()
18161816
void rlSetBlendMode(int mode)
18171817
{
18181818
#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
1819-
if (RLGL.State.currentBlendMode != mode || ((mode == RL_BLEND_CUSTOM || mode == RL_BLEND_CUSTOM_SEPARATE) && RLGL.State.glCustomBlendModeModified))
1819+
if ((RLGL.State.currentBlendMode != mode) || ((mode == RL_BLEND_CUSTOM || mode == RL_BLEND_CUSTOM_SEPARATE) && RLGL.State.glCustomBlendModeModified))
18201820
{
18211821
rlDrawRenderBatch(RLGL.currentBatch);
18221822

0 commit comments

Comments
 (0)