mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-24 16:48:18 -05:00
Fixed GLSL optimizer Android build.
This commit is contained in:
parent
2e0952bbec
commit
82d6813c5c
5 changed files with 5 additions and 5 deletions
|
@ -586,7 +586,7 @@ glsl_type::field_type(const char *name) const
|
|||
return error_type;
|
||||
}
|
||||
|
||||
const glsl_precision
|
||||
glsl_precision
|
||||
glsl_type::field_precision(const char *name) const
|
||||
{
|
||||
if (this->base_type != GLSL_TYPE_STRUCT)
|
||||
|
|
|
@ -454,7 +454,7 @@ struct glsl_type {
|
|||
*/
|
||||
const glsl_type *field_type(const char *name) const;
|
||||
|
||||
const glsl_precision field_precision(const char *name) const;
|
||||
glsl_precision field_precision(const char *name) const;
|
||||
|
||||
|
||||
/**
|
||||
|
|
2
3rdparty/glsl-optimizer/src/glsl/ralloc.c
vendored
2
3rdparty/glsl-optimizer/src/glsl/ralloc.c
vendored
|
@ -29,7 +29,7 @@
|
|||
#include <stdint.h>
|
||||
|
||||
/* Android defines SIZE_MAX in limits.h, instead of the standard stdint.h */
|
||||
#ifdef ANDROID
|
||||
#if defined(__ANDROID__) || defined(ANDROID)
|
||||
#include <limits.h>
|
||||
#endif
|
||||
|
||||
|
|
2
3rdparty/glsl-optimizer/src/glsl/strtod.c
vendored
2
3rdparty/glsl-optimizer/src/glsl/strtod.c
vendored
|
@ -45,7 +45,7 @@ double
|
|||
glsl_strtod(const char *s, char **end)
|
||||
{
|
||||
#if defined(_GNU_SOURCE) && !defined(__CYGWIN__) && !defined(__FreeBSD__) && \
|
||||
!defined(__HAIKU__) && !defined(__UCLIBC__)
|
||||
!defined(__HAIKU__) && !defined(__UCLIBC__) && !defined(__ANDROID__)
|
||||
static locale_t loc = NULL;
|
||||
if (!loc) {
|
||||
loc = newlocale(LC_CTYPE_MASK, "C", NULL);
|
||||
|
|
|
@ -114,7 +114,7 @@ typedef union { GLfloat f; GLint i; } fi_type;
|
|||
#define floorf(f) ((float) floor(f))
|
||||
#define logf(f) ((float) log(f))
|
||||
|
||||
#ifdef ANDROID
|
||||
#if defined(__ANDROID__) || defined(ANDROID)
|
||||
#define log2f(f) (logf(f) * (float) (1.0 / M_LN2))
|
||||
#else
|
||||
#define log2f(f) ((float) log2(f))
|
||||
|
|
Loading…
Reference in a new issue