Bladeren bron

Minor tweaks

pull/432/head
raysan5 7 jaren geleden
bovenliggende
commit
e7cf03b1e4
3 gewijzigde bestanden met toevoegingen van 7 en 9 verwijderingen
  1. +2
    -4
      src/models.c
  2. +4
    -4
      src/rlgl.c
  3. +1
    -1
      src/textures.c

+ 2
- 4
src/models.c Bestand weergeven

@ -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

+ 4
- 4
src/rlgl.c Bestand weergeven

@ -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

+ 1
- 1
src/textures.c Bestand weergeven

@ -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)));

Laden…
Annuleren
Opslaan