summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2017-12-28 19:27:02 +0100
committerraysan5 <[email protected]>2017-12-28 19:27:02 +0100
commite7cf03b1e4c1aa7872bda7b35a7d064815332759 (patch)
treecb5863339779ca5a6a4e746b1bc0c4a810be85ad
parent7965f983baa91afa7ac8019574a14e4814c91cf2 (diff)
downloadraylib-e7cf03b1e4c1aa7872bda7b35a7d064815332759.tar.gz
raylib-e7cf03b1e4c1aa7872bda7b35a7d064815332759.zip
Minor tweaks
-rw-r--r--src/models.c6
-rw-r--r--src/rlgl.c8
-rw-r--r--src/textures.c2
3 files changed, 7 insertions, 9 deletions
diff --git a/src/models.c b/src/models.c
index 002ffac3..1f37e345 100644
--- a/src/models.c
+++ b/src/models.c
@@ -45,9 +45,7 @@
#include "raylib.h"
-#if defined(PLATFORM_ANDROID)
- #include "utils.h" // Android fopen function map
-#endif
+#include "utils.h" // Required for: fopen() Android mapping
#include <stdio.h> // Required for: FILE, fopen(), fclose(), fscanf(), feof(), rewind(), fgets()
#include <stdlib.h> // Required for: malloc(), free()
@@ -57,7 +55,7 @@
#include "rlgl.h" // raylib OpenGL abstraction layer to OpenGL 1.1, 2.1, 3.3+ or ES2
#define PAR_SHAPES_IMPLEMENTATION
-#include "external/par_shapes.h"
+#include "external/par_shapes.h" // Shapes 3d parametric generation
//----------------------------------------------------------------------------------
// Defines and Macros
diff --git a/src/rlgl.c b/src/rlgl.c
index 58e9187d..4bbebf03 100644
--- a/src/rlgl.c
+++ b/src/rlgl.c
@@ -1109,7 +1109,7 @@ void rlglInit(int width, int height)
if (strcmp(extList[i], (const char *)"GL_OES_texture_npot") == 0) texNPOTSupported = true;
// Check texture float support
- if (strcmp(extList[i], (const char *)"OES_texture_float") == 0) texFloatSupported = true;
+ if (strcmp(extList[i], (const char *)"GL_OES_texture_float") == 0) texFloatSupported = true;
#endif
// DDS texture compression support
@@ -1137,11 +1137,11 @@ void rlglInit(int width, int height)
glGetFloatv(0x84FF, &maxAnisotropicLevel); // GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT
}
- // Debug marker support
- if(strcmp(extList[i], (const char *)"GL_EXT_debug_marker") == 0) debugMarkerSupported = true;
-
// Clamp mirror wrap mode supported
if (strcmp(extList[i], (const char *)"GL_EXT_texture_mirror_clamp") == 0) texClampMirrorSupported = true;
+
+ // Debug marker support
+ if(strcmp(extList[i], (const char *)"GL_EXT_debug_marker") == 0) debugMarkerSupported = true;
}
#ifdef _MSC_VER
diff --git a/src/textures.c b/src/textures.c
index 34f2c323..fd2fae0d 100644
--- a/src/textures.c
+++ b/src/textures.c
@@ -1681,7 +1681,7 @@ Image GenImageCellular(int width, int height, int tileSize)
// Generate GPU mipmaps for a texture
void GenTextureMipmaps(Texture2D *texture)
{
-#if PLATFORM_WEB
+#if defined(PLATFORM_WEB)
// Calculate next power-of-two values
int potWidth = (int)powf(2, ceilf(logf((float)texture->width)/logf(2)));
int potHeight = (int)powf(2, ceilf(logf((float)texture->height)/logf(2)));