Browse Source

Minor tweaks

pull/2808/head
Ray 2 years ago
parent
commit
f6558fe6e0
3 changed files with 5 additions and 5 deletions
  1. +2
    -2
      src/raylib.h
  2. +2
    -2
      src/rcore.c
  3. +1
    -1
      src/rlgl.h

+ 2
- 2
src/raylib.h View File

@ -857,8 +857,8 @@ typedef enum {
BLEND_ADD_COLORS, // Blend textures adding colors (alternative) BLEND_ADD_COLORS, // Blend textures adding colors (alternative)
BLEND_SUBTRACT_COLORS, // Blend textures subtracting colors (alternative) BLEND_SUBTRACT_COLORS, // Blend textures subtracting colors (alternative)
BLEND_ALPHA_PREMULTIPLY, // Blend premultiplied textures considering alpha 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; } BlendMode;
// Gesture // Gesture

+ 2
- 2
src/rcore.c View File

@ -3190,9 +3190,9 @@ FilePathList LoadDirectoryFilesEx(const char *basePath, const char *filter, bool
// Unload directory filepaths // Unload directory filepaths
void UnloadDirectoryFiles(FilePathList files) 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); RL_FREE(files.paths);
} }

+ 1
- 1
src/rlgl.h View File

@ -1816,7 +1816,7 @@ void rlCheckErrors()
void rlSetBlendMode(int mode) void rlSetBlendMode(int mode)
{ {
#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2) #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 (p">(RLGL.State.currentBlendMode != mode) || ((mode == RL_BLEND_CUSTOM || mode == RL_BLEND_CUSTOM_SEPARATE) && RLGL.State.glCustomBlendModeModified))
{ {
rlDrawRenderBatch(RLGL.currentBatch); rlDrawRenderBatch(RLGL.currentBatch);

Loading…
Cancel
Save